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 lambda function for each tuple */ export declare class LambdaStep extends UnbatchedStep { static $$export: { moduleName: string; exportName: string; }; isSyncAndSafe: boolean; allowMultipleOptimizations: boolean; private depId; private fn; constructor($plan: Step | null | undefined, fn: (value: TIn) => PromiseOrDirect); toStringMeta(): any; deduplicate(peers: LambdaStep[]): LambdaStep[]; 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 lambda(spec: TInMultistep, fn: (value: UnwrapMultistep) => PromiseOrDirect, isSyncAndSafe?: boolean): LambdaStep, TOut>; export { lambda }; //# sourceMappingURL=lambda.d.ts.map