import type { FilePathWithPrefix, LoadedEntry, MetaEntry, UXFileInfo, UXFileInfoStub, } from "../../lib/src/common/types"; export interface DatabaseFileAccess { delete: (file: UXFileInfoStub | FilePathWithPrefix, rev?: string) => Promise; store: (file: UXFileInfo, force?: boolean, skipCheck?: boolean) => Promise; storeContent(path: FilePathWithPrefix, content: string): Promise; createChunks: (file: UXFileInfo, force?: boolean, skipCheck?: boolean) => Promise; fetch: ( file: UXFileInfoStub | FilePathWithPrefix, rev?: string, waitForReady?: boolean, skipCheck?: boolean ) => Promise; fetchEntryFromMeta: (meta: MetaEntry, waitForReady?: boolean, skipCheck?: boolean) => Promise; fetchEntryMeta: ( file: UXFileInfoStub | FilePathWithPrefix, rev?: string, skipCheck?: boolean ) => Promise; fetchEntry: ( file: UXFileInfoStub | FilePathWithPrefix, rev?: string, waitForReady?: boolean, skipCheck?: boolean ) => Promise; getConflictedRevs: (file: UXFileInfoStub | FilePathWithPrefix) => Promise; // storeFromStorage: (file: UXFileInfoStub | FilePathWithPrefix, force?: boolean) => Promise; }