type ErrorPattern = 'command_not_found' | 'base_branch_missing' | 'timeout' | 'auth_failure' | 'other';
interface ErrorEntry {
    pattern: ErrorPattern;
    command?: string;
    branch?: string;
    count: number;
    reviewer?: string;
}
interface ReviewerPerf {
    attempts: number;
    successes: number;
    failure_rate: number;
}
interface Suggestion {
    type: 'add_constraint' | 'investigate' | 'config_change';
    instruction?: string;
    reason: string;
}
export interface DiagnoseReport {
    period: {
        from: string;
        to: string;
        log_files: number;
    };
    summary: {
        total_reviews: number;
        successful: number;
        failed: number;
        failure_rate: number;
    };
    errors: ErrorEntry[];
    verdict_distribution: {
        APPROVE: number;
        NEEDS_WORK: number;
        BLOCK: number;
    };
    verdict_parse_failures: number;
    repos_seen: string[];
    languages_detected: string[];
    reviewer_performance: Record<string, ReviewerPerf>;
    suggestions: Suggestion[];
}
export declare function classifyError(message: string): {
    pattern: ErrorPattern;
    command?: string;
    branch?: string;
};
export declare function buildDiagnoseReport(since?: string, logDir?: string): DiagnoseReport;
export declare function runDiagnose(opts: {
    json?: boolean;
    since?: string;
}): Promise<void>;
export {};
//# sourceMappingURL=diagnose.d.ts.map