/** * Update engine – applies MongoDB-style update operators to documents. * * Supports: * $set, $unset, $inc, $push, $pull, $addToSet, * $min, $max, $rename, $currentDate, $mul, $pop */ import type { UpdateQuery } from '@digitaldefiance/suite-core-lib'; import type { BsonDocument } from '../interfaces/storage/documentTypes'; /** * Check whether an update document uses operators ($set, $inc, etc.) * vs. being a plain replacement document. */ export declare function isOperatorUpdate(update: UpdateQuery): boolean; /** * Apply update operators to a document and return the mutated copy. * The original document is not modified. */ export declare function applyUpdate(doc: T, update: UpdateQuery): T; //# sourceMappingURL=updateEngine.d.ts.map