import { CBDAdapter } from '../cbd-adapter.js'; import { DocumentQuery } from '../types.js'; export declare class DocumentAPI implements DocumentQuery { private collection; private adapter; constructor(collection: string, adapter: CBDAdapter); find(query?: Record): Promise; findOne(query?: Record): Promise; findById(id: string): Promise; create(document: Partial): Promise; update(id: string, updates: Partial): Promise; delete(id: string): Promise; count(query?: Record): Promise; search(text: string, fields?: string[]): Promise; insertMany(documents: Partial[]): Promise; updateMany(query: Record, updates: Record): Promise; deleteMany(query: Record): Promise; aggregate(pipeline: any[]): Promise; where(conditions: Record): DocumentQueryBuilder; private matchesQuery; private sortDocuments; } declare class DocumentQueryBuilder { private documentAPI; private conditions; private sortSpec; private limitValue?; private skipValue?; constructor(documentAPI: DocumentAPI, initialConditions?: Record); where(conditions: Record): this; sort(spec: Record): this; limit(count: number): this; skip(count: number): this; execute(): Promise; first(): Promise; count(): Promise; } export {}; //# sourceMappingURL=document.d.ts.map