export type OpfsEntryType = { name: string; kind: 'file' | 'directory'; }; export declare class OpfsStorage { private rootPromise; private readonly baseDir; constructor(baseDir?: string); static isSupported(): boolean; init(): Promise; exists(path?: string): Promise; mkdir(path: string): Promise; list(path?: string): Promise; readFile(path: string): Promise; readBlob(path: string): Promise; readText(path: string): Promise; readJSON(path: string): Promise; write(path: string, data: Blob | BufferSource | string, options?: { shouldCreateDirectories?: boolean; }): Promise; writeText(path: string, text: string, options?: { shouldCreateDirectories?: boolean; }): Promise; writeJSON(path: string, value: unknown, options?: { shouldCreateDirectories?: boolean; space?: number; }): Promise; delete(path: string, recursive?: boolean): Promise; getObjectURL(path: string): Promise<{ url: string; revoke: () => void; }>; getSize(path: string): Promise; rename(fromPath: string, toPath: string): Promise; copy(fromPath: string, toPath: string): Promise; private getRoot; private getHandle; private getFileHandle; private getDirectoryHandle; private getDirectoryHandleAbsolute; private resolvePath; private normalizePath; private splitPath; private isTypeMismatchError; }