import type { DatabasePromise } from '@tursodatabase/database-common'; import { type Stats, type DirEntry, type FilesystemStats, type FileHandle, type FileSystem } from './interface.js'; /** * A filesystem backed by SQLite, implementing the FileSystem interface. */ export declare class AgentFS implements FileSystem { private db; private bufferCtor; private rootIno; private chunkSize; private constructor(); static fromDatabase(db: DatabasePromise, b?: BufferConstructor): Promise; getChunkSize(): number; private initialize; private ensureRoot; private normalizePath; private splitPath; private resolvePathOrThrow; private resolvePath; private resolveParent; private createInode; private createDentry; private ensureParentDirs; private getLinkCount; private getInodeMode; writeFile(path: string, content: string | Buffer, options?: BufferEncoding | { encoding?: BufferEncoding; }): Promise; private updateFileContent; readFile(path: string): Promise; readFile(path: string, encoding: BufferEncoding): Promise; readFile(path: string, options: { encoding: BufferEncoding; }): Promise; readdir(path: string): Promise; readdirPlus(path: string): Promise; stat(path: string): Promise; lstat(path: string): Promise; mkdir(path: string): Promise; rmdir(path: string): Promise; unlink(path: string): Promise; rm(path: string, options?: { force?: boolean; recursive?: boolean; }): Promise; private rmDirContentsRecursive; private removeDentryAndMaybeInode; rename(oldPath: string, newPath: string): Promise; copyFile(src: string, dest: string): Promise; symlink(target: string, linkpath: string): Promise; readlink(path: string): Promise; access(path: string): Promise; statfs(): Promise; open(path: string): Promise; deleteFile(path: string): Promise; }