UNPKG

@excalidraw/excalidraw

Version:
12 lines (11 loc) 876 B
import { ExcalidrawElement } from "../element/types"; import { AppState } from "../types"; import { FileSystemHandle } from "./filesystem"; import { ImportedLibraryData } from "./types"; export declare const getMimeType: (blob: Blob | string) => string; export declare const getFileHandleType: (handle: FileSystemHandle | null) => string | null; export declare const isImageFileHandleType: (type: string | null) => type is "svg" | "png"; export declare const isImageFileHandle: (handle: FileSystemHandle | null) => boolean; export declare const loadFromBlob: (blob: Blob, localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null) => Promise<import("./restore").RestoredDataState>; export declare const loadLibraryFromBlob: (blob: Blob) => Promise<ImportedLibraryData>; export declare const canvasToBlob: (canvas: HTMLCanvasElement) => Promise<Blob>;