/** * Conditional Branch Pattern - Multi-branch switch pattern in workflows */ import { AsyncFunction, Logger, MaybePromise } from "../types/common"; /** * A single branch in the conditional pattern */ export interface Branch { condition: (input: TInput) => MaybePromise; execute: AsyncFunction; } /** * Options for conditional branch pattern */ export interface ConditionalBranchOptions { branches: Branch[]; input: TInput; defaultBranch?: AsyncFunction; logger?: Logger; onBranchSelected?: (branchIndex: number) => void; } /** * Result from conditional branch pattern */ export interface ConditionalBranchResult { value: TResult; branchIndex: number; } export declare function conditionalBranch(options: ConditionalBranchOptions): Promise>; //# sourceMappingURL=conditional-branch.d.ts.map