export type RunMatFsFileType = "file" | "dir" | "directory" | "symlink" | "other" | "unknown"; export interface RunMatFilesystemMetadata { fileType: RunMatFsFileType; len: number; modified?: number; readonly?: boolean; } export interface RunMatFilesystemDirEntry { path: string; fileName: string; fileType?: RunMatFsFileType; } export type RunMatMaybePromise = T | Promise; export interface RunMatOpenFileDialogFilter { patterns: string[]; description?: string; } export interface RunMatOpenFileDialogRequest { title?: string; defaultPath?: string; filters: RunMatOpenFileDialogFilter[]; multiselect: boolean; } export interface RunMatOpenFileDialogSelection { paths: string[]; filterIndex?: number; } export interface RunMatFilesystemProvider { readFile(path: string): RunMatMaybePromise; readMany?(paths: string[]): RunMatMaybePromise>; writeFile(path: string, data: Uint8Array | ArrayBuffer | ArrayBufferView): RunMatMaybePromise; removeFile(path: string): RunMatMaybePromise; metadata(path: string): RunMatMaybePromise; symlinkMetadata?(path: string): RunMatMaybePromise; readDir(path: string): RunMatMaybePromise; canonicalize?(path: string): RunMatMaybePromise; createDir?(path: string): RunMatMaybePromise; createDirAll?(path: string): RunMatMaybePromise; removeDir?(path: string): RunMatMaybePromise; removeDirAll?(path: string): RunMatMaybePromise; rename?(from: string, to: string): RunMatMaybePromise; setReadonly?(path: string, readonly: boolean): RunMatMaybePromise; selectFileOpen?(request: RunMatOpenFileDialogRequest): RunMatMaybePromise; } //# sourceMappingURL=provider-types.d.ts.map