import type { Document } from '../bson'; import type { Collection } from '../collection'; import type { Server } from '../sdam/server'; import type { ClientSession } from '../sessions'; import { Callback } from '../utils'; import { CommandOperation, CommandOperationOptions } from './command'; /** @public */ export declare type DistinctOptions = CommandOperationOptions; /** * Return a list of distinct values for the given key across a collection. * @internal */ export declare class DistinctOperation extends CommandOperation { options: DistinctOptions; collection: Collection; /** Field of the document to find distinct values for. */ key: string; /** The query for filtering the set of documents to which we apply the distinct filter. */ query: Document; /** * Construct a Distinct operation. * * @param collection - Collection instance. * @param key - Field of the document to find distinct values for. * @param query - The query for filtering the set of documents to which we apply the distinct filter. * @param options - Optional settings. See Collection.prototype.distinct for a list of options. */ constructor(collection: Collection, key: string, query: Document, options?: DistinctOptions); execute(server: Server, session: ClientSession | undefined, callback: Callback): void; } //# sourceMappingURL=distinct.d.ts.map