/**
 * Cost Estimator - AI execution cost estimation
 *
 * Estimates the cost of autonomous workflow execution based on
 * AI API calls, task count, and complexity.
 *
 * Part of increment 0039: Ultra-Smart Next Command
 *
 * @module core/workflow/cost-estimator
 * @since v0.22.0
 */
/**
 * Cost estimate for workflow execution
 */
export interface CostEstimate {
    /** Estimated cost in USD */
    estimatedCost: number;
    /** Cost breakdown by phase */
    breakdown: CostBreakdown[];
    /** Risk level */
    riskLevel: RiskLevel;
    /** Explanation */
    explanation: string;
    /** Confidence in estimate (0.0-1.0) */
    confidence: number;
}
/**
 * Cost breakdown by phase
 */
export interface CostBreakdown {
    /** Phase name */
    phase: string;
    /** Number of AI calls */
    aiCalls: number;
    /** Estimated cost */
    cost: number;
}
/**
 * Risk level for cost
 */
export declare enum RiskLevel {
    /** < $1 */
    LOW = "low",
    /** $1 - $5 */
    MEDIUM = "medium",
    /** $5 - $20 */
    HIGH = "high",
    /** > $20 */
    CRITICAL = "critical"
}
/**
 * Cost estimation configuration
 */
export interface CostEstimatorConfig {
    /** Cost per AI call (default: $0.01) */
    costPerCall?: number;
    /** Low risk threshold (default: $1) */
    lowThreshold?: number;
    /** Medium risk threshold (default: $5) */
    mediumThreshold?: number;
    /** High risk threshold (default: $20) */
    highThreshold?: number;
}
/**
 * Cost Estimator - Estimate autonomous execution costs
 */
export declare class CostEstimator {
    private costPerCall;
    private lowThreshold;
    private mediumThreshold;
    private highThreshold;
    constructor(config?: CostEstimatorConfig);
    /**
     * Estimate cost for increment execution
     *
     * @param incrementPath - Path to increment directory
     * @returns Cost estimate
     */
    estimateIncrement(incrementPath: string): Promise<CostEstimate>;
    /**
     * Estimate planning cost (Architect + Planner = 2 calls)
     */
    private estimatePlanning;
    /**
     * Estimate execution cost based on task count
     */
    private estimateExecution;
    /**
     * Estimate task count from spec.md
     */
    private estimateTasksFromSpec;
    /**
     * Estimate validation cost
     */
    private estimateValidation;
    /**
     * Estimate QA cost
     */
    private estimateQA;
    /**
     * Determine risk level based on total cost
     */
    private determineRiskLevel;
    /**
     * Calculate confidence in estimate based on available files
     */
    private calculateConfidence;
    /**
     * Generate human-readable explanation
     */
    private generateExplanation;
    /**
     * Check if cost exceeds threshold
     *
     * @param estimate - Cost estimate
     * @returns True if cost exceeds HIGH threshold
     */
    checkThreshold(estimate: CostEstimate): boolean;
}
//# sourceMappingURL=cost-estimator.d.ts.map