UNPKG

@excalidraw/excalidraw

Version:
14 lines (13 loc) 716 B
import { NonDeletedExcalidrawElement } from "../element/types"; import { ExportType } from "../scene/types"; import { AppState } from "../types"; import { FileSystemHandle } from "./filesystem"; export { loadFromBlob } from "./blob"; export { loadFromJSON, saveAsJSON } from "./json"; export declare const exportCanvas: (type: ExportType, elements: readonly NonDeletedExcalidrawElement[], appState: AppState, { exportBackground, exportPadding, viewBackgroundColor, name, fileHandle, }: { exportBackground: boolean; exportPadding?: number | undefined; viewBackgroundColor: string; name: string; fileHandle?: FileSystemHandle | null | undefined; }) => Promise<FileSystemHandle | null | undefined>;