| import { DOMParser } from './types';
|
| |
| |
|
|
| interface ICanvas {
|
| createCanvas(width: number, height: number): any;
|
| loadImage(src: string): Promise<any>;
|
| }
|
| |
| |
|
|
| declare type Fetch = (input: any, config?: any) => Promise<any>;
|
| interface IConfig {
|
| |
| |
|
|
| DOMParser: DOMParser;
|
| |
| |
|
|
| canvas: ICanvas;
|
| |
| |
|
|
| fetch: Fetch;
|
| }
|
| |
| |
| |
| |
| |
| |
| |
|
|
| export declare function node({ DOMParser, canvas, fetch }: IConfig): {
|
| window: null;
|
| ignoreAnimation: boolean;
|
| ignoreMouse: boolean;
|
| DOMParser: DOMParser;
|
| fetch: Fetch;
|
| createCanvas: (width: number, height: number) => any;
|
| createImage: (src: string) => Promise<any>;
|
| };
|
| export {};
|
| |