import { type LocaleText } from '../../locale/index.js'; import { type Nabi } from '../../editor/index.js'; import type { ParseNode } from '../../html/index.js'; import type { Registry } from '../../wing/index.js'; import { type FileStore, type IoFilter } from '../../io/index.js'; export declare function browserFileStore(owner: Document, accept?: readonly string[]): FileStore; export declare function readExtensions(filters: readonly IoFilter[]): readonly string[]; export interface FileMountOptions { readonly nabi: Nabi; readonly store: FileStore; readonly registry: Registry; readonly ioFilters?: readonly IoFilter[]; readonly parse?: (html: string) => readonly ParseNode[]; readonly allowLocalUrls?: boolean; readonly name?: () => string; readonly discardMessage?: string; readonly locale?: string; readonly onError?: (error: unknown) => void; } export interface SaveFormat { readonly id: string; readonly label: LocaleText | string; readonly extension: string; readonly lossy: boolean; } export interface FileMount { save(name?: string): void; saveAs(id: string, name?: string): void; formats(): readonly SaveFormat[]; open(): Promise; unmount(): void; } export declare function mountFile(options: FileMountOptions): FileMount; //# sourceMappingURL=file.d.ts.map