import { Pattern } from '../../../types';
import { WorkflowStep } from './workflow-tracker';
export interface OutcomeRecord {
    patternId: string;
    description: string;
    from: string;
    to: string;
    action: 'accept' | 'reject' | 'edit_diff' | 'retry';
    timestamp: number;
    workflowSessionId: string;
    workflowSuccess: boolean;
    position: number;
}
export interface PatternOutcomeStats {
    patternId: string;
    description: string;
    totalAppearances: number;
    acceptCount: number;
    rejectCount: number;
    editDiffCount: number;
    retryCount: number;
    acceptanceRate: number;
    workflowSuccessRate: number;
}
export declare function recordOutcome(pattern: Pattern, action: WorkflowStep['action'], workflowSessionId: string, workflowSuccess: boolean, position: number): OutcomeRecord;
export declare function getPatternOutcomeStats(patternId: string): PatternOutcomeStats | null;
export declare function getAllPatternOutcomeStats(): PatternOutcomeStats[];
export declare function getPathSuccessDistribution(): Array<{
    pathLength: number;
    count: number;
    successRate: number;
}>;
export declare function getOutcomeHistory(limit?: number): OutcomeRecord[];
//# sourceMappingURL=outcome-recorder.d.ts.map