/// import type { Collections, CollectionName, MutableCollectionName, MutationInput, MutationPayload, SavedInput } from "./collections"; import type { IdObject } from "./id"; export interface Workspace { all>(collectionName: N): Promise[]>; find>(collectionName: N, options: (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; }