import type { Document } from '../bson'; import type { Server } from '../sdam/server'; import type { ClientSession } from '../sessions'; import type { Callback, MongoDBNamespace } from '../utils'; import { CommandOperation, CommandOperationOptions } from './command'; /** @public */ export interface CountOptions extends CommandOperationOptions { /** The number of documents to skip. */ skip?: number; /** The maximum amounts to count before aborting. */ limit?: number; /** Number of milliseconds to wait before aborting the query. */ maxTimeMS?: number; /** An index name hint for the query. */ hint?: string | Document; } /** @internal */ export declare class CountOperation extends CommandOperation { options: CountOptions; collectionName?: string; query: Document; constructor(namespace: MongoDBNamespace, filter: Document, options: CountOptions); execute(server: Server, session: ClientSession | undefined, callback: Callback): void; } //# sourceMappingURL=count.d.ts.map