import type { OneFSAdapter, OneFSFile, OneFSOpenOptions, OneFSSaveOptions, OneFSDirectory, OneFSDirectoryOptions, OneFSReadDirectoryOptions, OneFSScanOptions, OneFSEntry, StoredHandle, OneFSResult } from '../types'; export declare class CapacitorAdapter implements OneFSAdapter { platform: "capacitor"; private storage; private filesystem; private core; private persistByDefault; private scanLock; private sessionPaths; constructor(appName: string, maxRecentFiles?: number, persistByDefault?: boolean); isSupported(): boolean; /** * Delete the Documents copies backing pruned records so they don't * accumulate as orphans on disk. */ private removePrunedCopies; private loadFilesystem; private loadCore; private acquireScanLock; private isSafeDocumentsPath; private registerSessionFile; private resolveAuthorizedPath; openFile(options?: OneFSOpenOptions): Promise>; /** * Pick via @capawesome/capacitor-file-picker. Returns null only when the * plugin is not installed; once the picker has run, errors (including user * cancellation) are returned as results rather than falling back to the * HTML input, which would open a second picker. */ private pickFilesWithPlugin; private pickFilesWithInput; saveFile(file: OneFSFile, content: Uint8Array | string, options?: OneFSSaveOptions): Promise>; saveFileAs(content: Uint8Array | string, options?: OneFSSaveOptions): Promise>; openDirectory(_options?: OneFSDirectoryOptions): Promise>; readDirectory(directory: OneFSDirectory, options?: OneFSReadDirectoryOptions): Promise>; scanDirectory(directory: OneFSDirectory, options?: OneFSScanOptions): Promise>; private _scanDirectoryImpl; readFileFromDirectory(directory: OneFSDirectory, entry: OneFSEntry, options?: { maxBytes?: number; }): Promise>; getFileUrl(file: OneFSFile): Promise; getEntryUrl(entry: OneFSEntry): Promise; getRecentFiles(): Promise; restoreFile(stored: StoredHandle): Promise>; restoreDirectory(stored: StoredHandle): Promise>; deleteFile(file: OneFSFile): Promise>; renameFile(file: OneFSFile, newName: string): Promise>; removeFromRecent(id: string): Promise; clearRecent(): Promise; dispose(): void; }