export interface OPFSFileStore { read(path: string): Promise; write(path: string, data: BufferSource): Promise; append(path: string, data: BufferSource): Promise; remove(path: string, opts?: { recursive?: boolean; }): Promise; list(path: string): Promise; mkdir(path: string): Promise; lock(path: string): Promise<() => void>; tryLock(path: string): Promise<(() => void) | undefined>; } export declare class CrossContextLockUnavailableError extends Error { constructor(path: string); } export declare class BrowserOPFSFileStore implements OPFSFileStore { private readonly root; constructor(root?: FileSystemDirectoryHandle | Promise); read(path: string): Promise; write(path: string, data: BufferSource): Promise; append(path: string, data: BufferSource): Promise; remove(path: string, opts?: { recursive?: boolean; }): Promise; list(path: string): Promise; mkdir(path: string): Promise; lock(path: string): Promise<() => void>; tryLock(path: string): Promise<(() => void) | undefined>; private acquireLock; private getDirectory; private getFile; private createWritable; private createSyncAccessHandle; } export declare function createOPFSFileStore(root?: FileSystemDirectoryHandle | Promise): OPFSFileStore; //# sourceMappingURL=opfs_file_store.d.ts.map