/// import type { CollectionName, Collections, MutationInput, MutationPayload, MutableCollectionName, SavedInput } from "../collections"; import * as Id from "../id"; import type { Workspace } from "../data"; import type { Adapter, Definitions } from "./types"; export interface AdapterWorkspaceConstructorOptions { adapter: Adapter; definitions: Definitions; } export declare class AdapterWorkspace implements Workspace { private adapter; private generateId; constructor({ adapter, definitions }: AdapterWorkspaceConstructorOptions); all>(collectionName: N): Promise[]>; find>(collectionName: N, options: (Id.IdObject | undefined)[] | PouchDB.Find.FindRequest<{}>): Promise<(SavedInput | undefined)[]>; get>(collectionName: N, id: string | undefined): Promise | undefined>; add>(collectionName: N, input: MutationInput): Promise>; update>(collectionName: M, input: MutationInput): Promise>; remove>(collectionName: M, input: MutationInput): Promise; private marshal; private unmarshal; }