import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types"; import type { ExportType } from "../scene/types"; import type { AppState, BinaryFiles } from "../types"; export { loadFromBlob } from "./blob"; export { loadFromJSON, saveAsJSON } from "./json"; export type ExportedElements = readonly NonDeletedExcalidrawElement[] & { _brand: "exportedElements"; }; export declare const prepareElementsForExport: (elements: readonly ExcalidrawElement[], { selectedElementIds }: Pick, exportSelectionOnly: boolean) => { exportingFrame: ExcalidrawFrameLikeElement | null; exportedElements: ExportedElements; }; export declare const exportCanvas: (type: Omit, elements: ExportedElements, appState: AppState, files: BinaryFiles, { exportBackground, exportPadding, viewBackgroundColor, name, fileHandle, exportingFrame, }: { exportBackground: boolean; exportPadding?: number; viewBackgroundColor: string; /** filename, if applicable */ name?: string; fileHandle?: FileSystemFileHandle | null; exportingFrame: ExcalidrawFrameLikeElement | null; }) => Promise;