export declare const getFileHandleFromPath: (path: string, options?: {
    create?: boolean;
}) => Promise<FileSystemFileHandle>;
export declare const clearOPFS: () => Promise<void>;
export declare class OPFSFile {
    private path;
    private syncAccessHandle?;
    private directoryHandle?;
    private fileName?;
    private static stats;
    constructor(path: string);
    open(): Promise<void>;
    delete(): Promise<void>;
    close(): void;
    truncate(offset: number): void;
    write(buffer: ArrayBuffer, offset: number): number | undefined;
    read(offset: number, byteLength: number): ArrayBuffer;
    private updateReadStats;
}
