export interface WorkflowStep { id: string; type: 'tool' | 'llm' | 'condition'; tool?: string; input?: Record; prompt?: string; condition?: string; onTrue?: string; onFalse?: string; output?: string; } export interface WorkflowDefinition { name: string; description?: string; steps: WorkflowStep[]; errorHandling?: 'stop' | 'skip' | 'retry'; } export interface WorkflowState { workflowName: string; currentStepId: string; variables: Record; status: 'running' | 'completed' | 'failed' | 'paused'; startedAt: number; completedAt?: number; error?: string; } export declare class WorkflowEngine { private state; private _paused; private _definition; private _resumeIndex; execute(definition: WorkflowDefinition, initialVars?: Record): Promise; private _run; private executeStep; private evaluateCondition; private resolveVariables; getState(): WorkflowState | null; pause(): void; resume(): Promise; } //# sourceMappingURL=engine.d.ts.map