/**
 * Workflow Orchestrator - Core orchestration logic for sw:next
 *
 * Coordinates workflow execution by detecting current phase and
 * invoking appropriate commands.
 *
 * Part of increment 0039: Ultra-Smart Next Command
 *
 * @module core/workflow/workflow-orchestrator
 * @since v0.22.0
 */
import { WorkflowPhase } from './types.js';
/**
 * Workflow execution options
 */
export interface WorkflowExecuteOptions {
    /** Auto-approve actions without prompting (dangerous!) */
    autonomous?: boolean;
    /** Show detailed execution information */
    verbose?: boolean;
    /** Dry-run mode (preview actions without executing) */
    dryRun?: boolean;
    /** Force execution even with low confidence */
    force?: boolean;
}
/**
 * Workflow execution result
 */
export interface WorkflowExecutionResult {
    /** Execution succeeded */
    success: boolean;
    /** Phase that was detected */
    phase: WorkflowPhase;
    /** Confidence score for phase detection */
    confidence: number;
    /** Action that was taken */
    action?: string;
    /** Command that was invoked */
    command?: string;
    /** Error message if failed */
    error?: string;
    /** Human-readable explanation */
    reasoning?: string;
    /** Phase detection evidence */
    evidence?: string[];
}
/**
 * Workflow Orchestrator - Coordinates intelligent workflow execution
 *
 * This is a simplified initial implementation focusing on core phase detection.
 * Full autonomous execution will be added in future tasks.
 */
export declare class WorkflowOrchestrator {
    private phaseDetector;
    private activeIncrementManager;
    constructor();
    /**
     * Execute next step in workflow (interactive mode)
     *
     * Detects current phase and suggests/executes appropriate action.
     *
     * @param incrementId - Optional increment ID (auto-detects if not provided)
     * @param options - Execution options
     * @returns Workflow execution result
     */
    executeNext(incrementId?: string, options?: WorkflowExecuteOptions): Promise<WorkflowExecutionResult>;
    /**
     * Format reasoning from phase detection result
     */
    private formatReasoning;
    /**
     * Detect current workflow phase for increment
     *
     * @param incrementId - Increment ID (auto-detects if not provided)
     * @returns Phase detection result
     */
    private detectCurrentPhase;
    /**
     * Auto-detect active increment
     *
     * @returns Increment ID or throws if none found
     */
    private detectActiveIncrement;
    /**
     * Determine action based on phase and confidence
     */
    private determineAction;
}
//# sourceMappingURL=workflow-orchestrator.d.ts.map