/** * borrow from https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/data/filesystem.ts#L80 */ import { MIME_TYPES } from '@infinite-canvas-tutorial/ecs'; export declare const debounce: (fn: (...args: T) => void, timeout: number) => { (...args: T): void; flush(): void; cancel(): void; }; /** * borrow from https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/data/filesystem.ts */ type FILE_EXTENSION = Exclude; export declare const fileOpen: (opts: { extensions?: FILE_EXTENSION[]; description: string; multiple?: M; }) => Promise; export declare const fileSave: (blob: Blob | Promise, opts: { /** supply without the extension */ name: string; /** file extension */ extension: FILE_EXTENSION; mimeTypes?: string[]; description: string; /** existing FileSystemHandle */ fileHandle?: FileSystemFileHandle | null; }) => Promise; export declare function getDataURL(file: Blob | File): Promise; export {};