/** * Workflow Service * * Manages workflow lifecycle, state transitions, and phase coordination. */ import type { Workflow, PhaseResult } from "../types/workflow.js"; /** * Service for managing development workflows. * * Creates, tracks, and manages structured workflows with phases * like spec, plan, implement, and review. */ export declare class WorkflowService { private projectRoot; private workflowsPath; /** * @param projectRoot - Root directory of the project */ constructor(projectRoot: string); /** * Create a new workflow with readable ID format (001-feature-name) */ createWorkflow(title: string): Promise; /** * Load workflow by ID */ loadWorkflow(workflowId: string): Promise; /** * Save workflow state */ saveWorkflow(workflow: Workflow): Promise; /** * Save phase result to workflow directory */ savePhaseResult(workflowId: string, phase: string, content: string): Promise; /** * Load phase content from workflow directory */ loadPhaseContent(workflowId: string, phase: string): Promise; /** * Record phase completion */ recordPhaseCompletion(workflowId: string, result: PhaseResult): Promise; /** * Get next phase based on current phase */ private getNextPhase; /** * Get role responsible for phase */ private getRoleForPhase; /** * List all workflows */ listWorkflows(limit?: number): Promise; /** * Get the most recent workflow ID */ getLatestWorkflow(): Promise; /** * Get workflow status summary */ getWorkflowStatus(workflowId: string): Promise<{ workflow: Workflow; completedPhases: string[]; currentPhase: string; nextPhase: string; }>; } //# sourceMappingURL=workflow-service.d.ts.map