import type { BackendType, FolderEntry, ReadResult, VersionInfo, WriteQueryOptions } from "../types";
export interface WorkspaceBackend {
    readonly type: BackendType;
    validateAccess(): Promise<void>;
    listFolder(folderId?: string): Promise<FolderEntry[]>;
    searchByName?(query: string): Promise<FolderEntry[]>;
    readQuery(queryId: string): Promise<ReadResult>;
    writeQuery(queryId: string, queryText: string, options?: WriteQueryOptions): Promise<void>;
    listVersions(queryId: string): Promise<VersionInfo[]>;
    readVersion(queryId: string, versionId: string): Promise<ReadResult>;
    renameQuery?(queryId: string, newLabel: string): Promise<void>;
    deleteQuery?(queryId: string): Promise<void>;
    renameFolder?(folderId: string, newLabel: string): Promise<void>;
    deleteFolder?(folderId: string): Promise<void>;
}
