import type { RelativePath } from "src/persistence/database"; export interface FileSystemOperations { listAllFiles: () => Promise; read: (path: RelativePath) => Promise; write: (path: RelativePath, content: Uint8Array) => Promise; atomicUpdateText: ( path: RelativePath, updater: (currentContent: string) => string ) => Promise; getFileSize: (path: RelativePath) => Promise; exists: (path: RelativePath) => Promise; createDirectory: (path: RelativePath) => Promise; delete: (path: RelativePath) => Promise; rename: (oldPath: RelativePath, newPath: RelativePath) => Promise; }