import { BridgeDaemon } from '../bridge/daemon'; import { HandrailsClient } from '../handrails/client'; interface WorkflowNode { id: number; node_type: string; name: string; config: any; } interface WorkflowEdge { id: number; source_node_id: number; target_node_id: number; condition?: { output_key: string; equals: string; }; } interface WorkflowWithGraph { id: number; name: string; nodes: WorkflowNode[]; edges: WorkflowEdge[]; } export declare class WorkflowEngine { private bridge; private client; private context; private pendingUserResponses; constructor(bridge: BridgeDaemon, client: HandrailsClient); execute(workflow: WorkflowWithGraph, runId: string, input: Record): Promise; handleUserResponse(runId: string, nodeId: number, response: string): void; private executeNode; private executeTrigger; private executeContext; private executeDecision; private executeAction; private executeLlm; private executeOutput; private renderTemplate; private buildContextString; private waitForUserResponse; private topologicalSort; } export {};