import { $ as MongoFilterRewriter, A as MongoFieldFilter, At as MongoSkipStage, B as MongoAggFieldRef, C as RawInsertOneCommand, Ct as MongoProjectionValue, D as MongoAndExpr, Dt as MongoSearchMetaStage, E as RawUpdateOneCommand, Et as MongoSampleStage, F as AggRecordArgs, Ft as MongoUpdatePipelineStage, G as MongoAggOperator, H as MongoAggLiteral, I as MongoAggAccumulator, It as MongoVectorSearchStage, J as MongoAggSwitchBranch, K as MongoAggReduce, L as MongoAggArrayFilter, Lt as MongoWindowField, M as MongoNotExpr, Mt as MongoSortStage, N as MongoOrExpr, Nt as MongoUnionWithStage, O as MongoExistsExpr, Ot as MongoSearchStage, P as isMongoFilterExpr, Pt as MongoUnwindStage, Q as MongoAggExprVisitor, R as MongoAggCond, S as RawInsertManyCommand, St as MongoProjectStage, T as RawUpdateManyCommand, Tt as MongoReplaceRootStage, U as MongoAggMap, V as MongoAggLet, W as MongoAggMergeObjects, X as isRecordArgs, Y as isExprArray, Z as MongoAggExprRewriter, _ as RawAggregateCommand, _t as MongoLookupStage, a as freezeMongoResultShape, at as MongoBucketStage, b as RawFindOneAndDeleteCommand, bt as MongoOutStage, c as DeleteManyCommand, ct as MongoDensifyStage, d as FindOneAndUpdateCommand, dt as MongoFillStage, et as MongoFilterVisitor, f as InsertManyCommand, ft as MongoGeoNearStage, g as UpdateOneCommand, gt as MongoLimitStage, h as UpdateManyCommand, ht as MongoGroupStage, i as freezeMongoFieldShape, it as MongoBucketAutoStage, j as MongoFilterExpr, jt as MongoSortByCountStage, k as MongoExprFilter, kt as MongoSetWindowFieldsStage, l as DeleteOneCommand, lt as MongoFacetStage, m as MongoUpdateSpec, mt as MongoGroupId, n as MongoFieldShape, nt as MongoStageVisitor, o as AggregateCommand, ot as MongoCountStage, p as InsertOneCommand, pt as MongoGraphLookupStage, q as MongoAggSwitch, r as MongoResultShape, rt as MongoAddFieldsStage, s as AnyMongoCommand, st as MongoDensifyRange, t as MongoQueryPlan, tt as MongoStageRewriterContext, u as FindOneAndDeleteCommand, ut as MongoFillOutput, v as RawDeleteManyCommand, vt as MongoMatchStage, w as RawMongoCommand, wt as MongoRedactStage, x as RawFindOneAndUpdateCommand, xt as MongoPipelineStage, y as RawDeleteOneCommand, yt as MongoMergeStage, z as MongoAggExpr } from "../query-plan-mVohmpSo.mjs"; //#region src/result-types.d.ts /** * Canonical command result types for the MongoDB primitive language. * * These interfaces describe the shape of the result document yielded by * each write command. They live in the query layer (co-located with * command AST nodes) because they are part of the language definition — * transport layers (wire, HTTP, etc.) satisfy these interfaces, they do * not define them. */ interface InsertOneResult { readonly insertedId: unknown; } interface InsertManyResult { readonly insertedIds: ReadonlyArray; readonly insertedCount: number; } /** * Shared result shape for `updateOne`, `updateMany`, and `upsertOne` * commands. The `upsertedCount` / `upsertedId` fields are present only * when the command was issued with `upsert: true` and a new document * was inserted. */ interface UpdateResult { readonly matchedCount: number; readonly modifiedCount: number; readonly upsertedCount?: number; readonly upsertedId?: unknown; } /** Alias — `updateOne` yields the same shape as `updateMany`. */ type UpdateOneResult = UpdateResult; /** Alias — `updateMany` yields the same shape as `updateOne`. */ type UpdateManyResult = UpdateResult; /** * Shared result shape for `deleteOne` and `deleteMany` commands. */ interface DeleteResult { readonly deletedCount: number; } /** Alias — `deleteOne` yields the same shape as `deleteMany`. */ type DeleteOneResult = DeleteResult; /** Alias — `deleteMany` yields the same shape as `deleteOne`. */ type DeleteManyResult = DeleteResult; //#endregion export { type AggRecordArgs, AggregateCommand, type AnyMongoCommand, DeleteManyCommand, type DeleteManyResult, DeleteOneCommand, type DeleteOneResult, type DeleteResult, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, type InsertManyResult, InsertOneCommand, type InsertOneResult, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, type MongoAggExpr, type MongoAggExprRewriter, type MongoAggExprVisitor, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, type MongoAggSwitchBranch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, MongoCountStage, type MongoDensifyRange, MongoDensifyStage, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, type MongoFieldShape, type MongoFillOutput, MongoFillStage, type MongoFilterExpr, type MongoFilterRewriter, type MongoFilterVisitor, MongoGeoNearStage, MongoGraphLookupStage, type MongoGroupId, MongoGroupStage, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, MongoNotExpr, MongoOrExpr, MongoOutStage, type MongoPipelineStage, MongoProjectStage, type MongoProjectionValue, type MongoQueryPlan, MongoRedactStage, MongoReplaceRootStage, type MongoResultShape, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, type MongoStageRewriterContext, type MongoStageVisitor, MongoUnionWithStage, MongoUnwindStage, type MongoUpdatePipelineStage, type MongoUpdateSpec, MongoVectorSearchStage, type MongoWindowField, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, type RawMongoCommand, RawUpdateManyCommand, RawUpdateOneCommand, UpdateManyCommand, type UpdateManyResult, UpdateOneCommand, type UpdateOneResult, type UpdateResult, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoFilterExpr, isRecordArgs }; //# sourceMappingURL=execution.d.mts.map