import type { Document } from '../bson'; import type { Collection } from '../collection'; import type { Server } from '../sdam/server'; import type { ClientSession } from '../sessions'; import type { Callback } from '../utils'; import { AggregateOperation, AggregateOptions } from './aggregate'; /** @public */ export interface CountDocumentsOptions extends AggregateOptions { /** The number of documents to skip. */ skip?: number; /** The maximum amounts to count before aborting. */ limit?: number; } /** @internal */ export declare class CountDocumentsOperation extends AggregateOperation { constructor(collection: Collection, query: Document, options: CountDocumentsOptions); execute(server: Server, session: ClientSession | undefined, callback: Callback): void; } //# sourceMappingURL=count_documents.d.ts.map