/** * WorkflowBuilder - Fluent API for constructing workflows */ import type { Workflow, WorkflowState, NodeFn, AddNodeOptions, AddConditionalOptions, AddLoopOptions, AddParallelOptions } from '@cogitator-ai/types'; export declare class WorkflowBuilder { private name; private state; private nodes; private conditionals; private loops; private parallels; private entryPointName; private usedNames; constructor(name: string); private registerName; /** * Set the initial state for the workflow */ initialState(state: S): this; /** * Set explicit entry point (first node to execute) */ entryPoint(nodeName: string): this; /** * Add a node to the workflow */ addNode(name: string, fn: NodeFn, options?: AddNodeOptions): this; /** * Add a conditional routing node */ addConditional(name: string, condition: (state: S) => string | string[], options?: AddConditionalOptions): this; /** * Add a loop construct */ addLoop(name: string, options: AddLoopOptions): this; addParallel(name: string, targets: string[], options?: AddParallelOptions): this; /** * Build and validate the workflow */ build(): Workflow; private validate; } //# sourceMappingURL=builder.d.ts.map