import type { ContextStrategy, ExtractionNodeConfig, FlowConfig, FlowNodeConfig, FlowTransitionConfig } from '../types/index.js'; import { FlowNode } from './FlowNode.js'; export declare class FlowGraph { private nodes; private transitions; private defaultRolePrompt?; private contextStrategy?; addNode(node: FlowNode): this; addTransition(from: string, to: string, config?: Omit): this; setDefaultRolePrompt(prompt: string): this; setContextStrategy(strategy: ContextStrategy): this; toConfig(): FlowConfig; static create(): FlowGraphBuilder; } export declare class FlowGraphBuilder { private graph; node(id: string, config: Omit): this; /** Add an extraction node that loops until a Zod schema is fully satisfied. */ extractionNode(id: string, config: Omit): this; transition(from: string, to: string, config?: Omit): this; defaultRolePrompt(prompt: string): this; contextStrategy(strategy: ContextStrategy): this; build(): FlowConfig; }