import { Document, Filter, OptionalId } from "mongodb"; import { BulkWriteOp } from "./bulkWrite.types"; /** * Updates specific fields on the record matching filter. * Does nothing if no record matches. */ export declare function buildSetOp(filter: Filter, setFields: Partial): BulkWriteOp; /** * Updates specific fields on the record matching the filter or creates a new record if none matches. * setOnInsertFields are only applied when a new record is created; they're ignored on an update. */ export declare function buildUpsertOp(filter: Filter, setFields: Partial, setOnInsertFields?: Partial): BulkWriteOp; /** Creates a new record. */ export declare function buildInsertOp(document: OptionalId): BulkWriteOp; /** Permanently removes the record matching the filter. */ export declare function buildDeleteOp(filter: Filter): BulkWriteOp; //# sourceMappingURL=bulkWrite.ops.d.ts.map