export interface WorkflowPhase { name: string; description: string; agents: string[]; dependencies?: string[]; deliverables: string[]; quality_gates: string[]; condition?: string; } export interface WorkflowDefinition { workflow: { name: string; version: string; description: string; enhanced_features?: string[]; }; phases: WorkflowPhase[]; quality_gates?: Record; success_metrics?: Record; risk_management?: Record; } export interface WorkflowState { workflowId: string; currentPhase: number; phaseStatus: 'pending' | 'in_progress' | 'completed' | 'blocked'; completedPhases: string[]; artifacts: Record; startedAt: Date; lastUpdated: Date; } export declare class WorkflowEngine { private vcsysRoot; private workflowsDir; private stateFile; constructor(projectRoot?: string); listWorkflows(): Promise>; loadWorkflow(workflowId: string): Promise; startWorkflow(workflowId: string): Promise; getWorkflowStatus(): Promise; getCurrentPhase(): Promise<{ phase: WorkflowPhase; workflow: WorkflowDefinition; } | null>; getNextPhase(): Promise<{ phase: WorkflowPhase; phaseIndex: number; } | null>; advancePhase(): Promise; updatePhaseStatus(status: 'pending' | 'in_progress' | 'completed' | 'blocked'): Promise; addArtifact(phaseName: string, artifact: string): Promise; resetWorkflow(): Promise; private saveState; validateDependencies(phase: WorkflowPhase): Promise; isWorkflowComplete(): Promise; }