import type { PromiseOrDirect, UnbatchedExecutionExtra } from "../interfaces.ts"; import type { Multistep, UnwrapMultistep } from "../multistep.ts"; import type { Step } from "../step.ts"; import { UnbatchedStep } from "../step.ts"; /** * Calls the given callback function for each tuple */ export declare class SideEffectStep extends UnbatchedStep { static $$export: { moduleName: string; exportName: string; }; isSyncAndSafe: boolean; allowMultipleOptimizations: boolean; private planDep; private fn; constructor($plan: Step | null | undefined, fn: (value: TIn) => PromiseOrDirect); toStringMeta(): any; unbatchedExecute(_extra: UnbatchedExecutionExtra, value: TIn): PromiseOrDirect; } /** * A plan that takes the input `$plan` and feeds each value through the `fn` * callback. Note: if you need to pass more than one value, pass a `ListStep` * as the `$plan` argument. */ declare function sideEffect(spec: TInMultistep, fn: (value: UnwrapMultistep) => PromiseOrDirect): SideEffectStep, TOut>; export { sideEffect }; //# sourceMappingURL=sideEffect.d.ts.map