1 | import { DOMParser } from './types';
|
2 | interface IConfig {
|
3 | /**
|
4 | * XML/HTML parser from string into DOM Document.
|
5 | */
|
6 | DOMParser?: DOMParser;
|
7 | }
|
8 | /**
|
9 | * Options preset for `OffscreenCanvas`.
|
10 | * @param config - Preset requirements.
|
11 | * @param config.DOMParser - XML/HTML parser from string into DOM Document.
|
12 | * @returns Preset object.
|
13 | */
|
14 | export declare function offscreen({ DOMParser: DOMParserFallback }?: IConfig): {
|
15 | window: any;
|
16 | ignoreAnimation: boolean;
|
17 | ignoreMouse: boolean;
|
18 | DOMParser: DOMParser;
|
19 | createCanvas(width: number, height: number): OffscreenCanvas;
|
20 | createImage(url: string): Promise<ImageBitmap>;
|
21 | };
|
22 | export {};
|
23 | //# sourceMappingURL=offscreen.d.ts.map |
\ | No newline at end of file |