import { CursorParams, CursorParamsWithArgs, CursorParamsWithCaller, CursorParamsWithResult } from "./cursorHelperTypes.js"; import { BeforeAfterErrorGenericCursorEventDefinitions } from "./genericCursorEvents.js"; import { BeforeAfterCallbackArgsAndReturn, ExtractEventDefinitions } from "./helpersTypes.js"; import { HookedAggregationCursorInterface } from "./hookedAggregationCursorInterface.js"; import { BeforeAfterErrorSharedEventDefinitions } from "./sharedEvents.js"; export type BeforeAfterErrorAggregationOnlyCursorEventDefinitions = { "aggregation.cursor.execute": CursorParamsWithCaller, { caller: "aggregate" | "aggregation.cursor.toArray" | "aggregation.cursor.forEach" | "aggregation.cursor.next" | "aggregation.cursor.asyncIterator"; }>; "aggregation.cursor.next": CursorParamsWithResult, { result: TSchema | null; }>; "aggregation.cursor.toArray": CursorParamsWithResult, { result: TSchema[]; }>; "aggregation.cursor.forEach": CursorParamsWithArgs, { result: void; args: [iterator: (doc: TSchema) => boolean | void]; }>; "aggregation.cursor.asyncIterator": CursorParams, {}>; "aggregation.cursor.rewind": CursorParams, { isPromise: false; }>; "aggregation.cursor.close": CursorParams, {}>; }; export type BeforeAfterErrorAggregateCursorEventDefinitions = BeforeAfterErrorAggregationOnlyCursorEventDefinitions & BeforeAfterErrorGenericCursorEventDefinitions & BeforeAfterErrorSharedEventDefinitions; type AggregationCursorBeforeEventDefinitions = ExtractEventDefinitions, "before", "before">; type AggregationCursorAfterSuccessEventDefinitions = ExtractEventDefinitions, "after", "success", "success">; type AggregationCursorAfterErrorEventDefinitions = ExtractEventDefinitions, "after", "error", "error">; type AggregationCursorAfterEventDefinitions = ExtractEventDefinitions, "after", "after">; type BeforeAfterErrorAggregationCursorEventDefinitions = AggregationCursorBeforeEventDefinitions & AggregationCursorAfterSuccessEventDefinitions & AggregationCursorAfterErrorEventDefinitions & AggregationCursorAfterEventDefinitions; type AggregationCursorCallbackArgsAndReturn = BeforeAfterCallbackArgsAndReturn>; export type AggregationCursorHookedEventMap = AggregationCursorCallbackArgsAndReturn; export {};