export interface PreFailureAlert {
    type: 'repeat_mistake' | 'pattern_risk' | 'error_prone_file';
    severity: 'critical' | 'warning' | 'info';
    message: string;
    evidence: string;
    suggestion: string;
    confidence: number;
    file?: string;
    historicalCount?: number;
}
export interface DecisionRegret {
    technology: string;
    timesChosen: number;
    timesReverted: number;
    regretRate: number;
    avgTimeBeforeRevert: number;
    warning: string;
    confidence: number;
}
export interface ComplexityTrap {
    type: 'function_growing' | 'file_too_large' | 'abstraction_overload' | 'high_cyclomatic';
    file: string;
    currentValue: number;
    threshold: number;
    message: string;
    suggestion: string;
    confidence: number;
}
export interface ScopeCreep {
    feature: string;
    filesTouched: number;
    estimatedFiles: number;
    overrunRatio: number;
    predictedCompletionHours: number;
    actualHoursSoFar: number;
    message: string;
    confidence: number;
}
export interface EnergyPrediction {
    type: 'optimal_time' | 'avoid_time' | 'break_needed' | 'energy_low';
    message: string;
    bestTime?: string;
    avoidTime?: string;
    hoursWorked?: number;
    errorRateIncrease?: number;
    confidence: number;
}
export interface StackWarning {
    type: 'library_mismatch' | 'tool_ineffective' | 'dependency_risk';
    technology: string;
    message: string;
    alternative?: string;
    evidence: string;
    confidence: number;
}
export interface Prediction {
    id: string;
    type: 'pre_failure' | 'decision_regret' | 'complexity_trap' | 'scope_creep' | 'energy' | 'stack';
    severity: 'critical' | 'warning' | 'info';
    title: string;
    message: string;
    confidence: number;
    actionable: boolean;
    suggestedAction?: string;
    createdAt: string;
    project?: string;
}
export interface RiskScore {
    file: string;
    score: number;
    factors: Array<{
        name: string;
        weight: number;
        reason: string;
    }>;
    predictions: Prediction[];
}
export interface TimeEstimate {
    feature: string;
    estimatedHours: number;
    confidence: number;
    basedOn: string[];
    similarPastFeatures: number;
}
export declare function detectPreFailureAlerts(project?: string): PreFailureAlert[];
export declare function predictDecisionRegret(): DecisionRegret[];
export declare function getDecisionWarning(technology: string): string | null;
export declare function detectComplexityTraps(projectDir?: string): ComplexityTrap[];
export declare function detectScopeCreep(project?: string): ScopeCreep[];
export declare function predictEnergyPatterns(): EnergyPrediction[];
export declare function analyzeStackCompatibility(): StackWarning[];
export declare function getAllPredictions(project?: string): Prediction[];
export declare function calculateFileRisk(file: string): RiskScore;
export declare function estimateFeatureTime(feature: string): TimeEstimate;
//# sourceMappingURL=predictive-intelligence.d.ts.map