import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types"; import type { FileSystemHandle } from "./filesystem"; 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 exportAsImage: ({ type, data, config, }: { type: Omit; data: { elements: ExportedElements; appState: AppState; files: BinaryFiles; }; config: { exportBackground: boolean; padding?: number; viewBackgroundColor: string; /** filename, if applicable */ name?: string; fileHandle?: FileSystemHandle | null; exportingFrame: ExcalidrawFrameLikeElement | null; }; }) => Promise;