import type { BufferEncoding, CpOptions, FileContent, FsStat, IFileSystem, MkdirOptions, RmOptions } from "just-bash"; import { SupermemoryVolume } from "./volume.js"; interface ReadFileOptions { encoding?: BufferEncoding | null; } interface WriteFileOptions { encoding?: BufferEncoding; } interface DirentEntry { name: string; isFile: boolean; isDirectory: boolean; isSymbolicLink: boolean; } export declare class SupermemoryFs implements IFileSystem { readonly volume: SupermemoryVolume; constructor(volume: SupermemoryVolume); resolvePath(base: string, path: string): string; realpath(path: string): Promise; exists(path: string): Promise; stat(path: string): Promise; lstat(path: string): Promise; readFile(path: string, _options?: ReadFileOptions | BufferEncoding): Promise; readFileBuffer(path: string): Promise; readdir(path: string): Promise; readdirWithFileTypes(path: string): Promise; writeFile(path: string, content: FileContent, _options?: WriteFileOptions | BufferEncoding): Promise; appendFile(path: string, content: FileContent, _options?: WriteFileOptions | BufferEncoding): Promise; mkdir(path: string, options?: MkdirOptions): Promise; rm(path: string, options?: RmOptions): Promise; rmdir(path: string, _options?: RmOptions): Promise; mv(src: string, dest: string): Promise; cp(src: string, dest: string, options?: CpOptions): Promise; chmod(_path: string, _mode: number): Promise; utimes(_path: string, _atime: Date, _mtime: Date): Promise; symlink(_target: string, _linkPath: string): Promise; link(_existingPath: string, _newPath: string): Promise; readlink(_path: string): Promise; /** Sync inventory used by just-bash for ls and glob expansion. */ getAllPaths(): string[]; } export {}; //# sourceMappingURL=supermemory-fs.d.ts.map