import { RelativePath } from "src/database/document-metadata"; export interface FileOperations { listAllFiles(): Promise; read(path: RelativePath): Promise; getModificationTime(path: RelativePath): Promise; create(path: RelativePath, newContent: Uint8Array): Promise; // Writes new content to the file at the given path. If the file's content has changed since the expectedContent was read, the write will merge the changes. write( path: RelativePath, expectedContent: Uint8Array, newContent: Uint8Array ): Promise; remove(path: RelativePath): Promise; move(oldPath: RelativePath, newPath: RelativePath): Promise; }