import { AggregationCursor, CollectionAggregationOptions, MongoCallback } from "mongodb"; import { MongoCollection } from "../MongoCollection"; export declare class MongoQuery { collection: typeof MongoCollection; query?: any; isLean: boolean; pipeline: any[]; populatedFields: string[]; constructor(collection: typeof MongoCollection, query?: any); lean(isLean?: boolean): this; where(clause?: any): this; sort(clause?: any): this; gt(clause?: object): this; gte(clause?: object): this; lt(clause?: object): this; lte(clause?: object): this; skip(skip?: number): this; limit(limit?: number): this; populate(...fields: string[]): this; private _populate; cast(): MongoQuery; aggregate(pipeline?: any[], options?: CollectionAggregationOptions, callback?: MongoCallback): AggregationCursor; cursor(cursorOptions?: { batchSize: number; }, explain?: boolean): AggregationCursor; }