import { FieldName, Id, Selection } from '../types'; declare type CombinedSelection = { ids: Id[]; fields: FieldName[]; map: number[]; }; declare type Doc = { _id: string; }; declare type Result = Doc[]; export declare function combineSelections(selections: Selection[]): CombinedSelection[]; export declare function toQuery(combinedSelections: CombinedSelection[]): string; export declare function reassemble(queryResult: Result[], combinedSelections: CombinedSelection[]): (Doc | null)[]; export {}; //# sourceMappingURL=optimizeQuery.d.ts.map