/**
 * DiagnosisEngine — classifies failures and recommends retry strategies.
 *
 * Maps AttemptStatus + error context → DiagnosisResult with:
 *   - root cause classification
 *   - retry strategy (same/context/switch/skip/abort)
 *   - optional context adjustment (add files, change budget, patch prompt)
 *   - confidence score
 */
import type { AttemptRecord, AttemptStatus, DiagnosisResult } from "./attempt-record.js";
export interface DiagnosisEngine {
    diagnose(record: AttemptRecord): DiagnosisResult;
    classifyError(error: string, exitCode?: number): AttemptStatus;
}
export declare function createDiagnosisEngine(): DiagnosisEngine;
