/** * SPOT CHANGES * * - Change the `fileSave` function from using the (File System * API)[https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write] * to using the file-saver npm package because trying to write a file with the * File System API throws a DOMException in Electron * - Add "spotwhiteboard" file extension. */ import { FileSystemHandle, supported as nativeFileSystemSupported } from "browser-fs-access"; declare type FILE_EXTENSION = "gif" | "jpg" | "png" | "excalidraw.png" | "svg" | "excalidraw.svg" | "json" | "excalidraw" | "excalidrawlib" | "spotwhiteboard"; export declare const fileOpen: (opts: { extensions?: FILE_EXTENSION[] | undefined; description: string; multiple?: M | undefined; }) => Promise; export declare const fileSave: (blob: Blob, opts: { /** supply without the extension */ name: string; /** file extension */ extension: FILE_EXTENSION; description: string; /** existing FileSystemHandle */ fileHandle?: FileSystemHandle | null; }) => Promise; export type { FileSystemHandle }; export { nativeFileSystemSupported };