/**
 * Cortex Store — persistent mistake/lesson storage.
 * Uses the same SQLite database as ShieldCortex memory.
 * Pro tier feature.
 */
export type MistakeCategory = 'design' | 'code' | 'config' | 'communication' | 'judgement' | 'process' | 'data' | 'security';
export type MistakeSeverity = 'critical' | 'high' | 'medium' | 'low';
export interface Mistake {
    id: number;
    timestamp: string;
    category: MistakeCategory;
    severity: MistakeSeverity;
    what: string;
    why: string;
    rule: string;
    tags: string[];
    status: 'active' | 'graduated';
    recurrences: number;
    graduatedAt: string | null;
    agent?: string;
    taskContext?: string;
}
export interface PreflightMatch {
    score: number;
    mistake: Mistake;
}
export interface ReviewStats {
    total: number;
    active: number;
    graduated: number;
    byCategory: Record<string, number>;
    bySeverity: Record<string, number>;
    repeatOffenders: Mistake[];
    readyToGraduate: Mistake[];
    recentCount: number;
}
export declare function loadMistakes(): Mistake[];
export declare function saveMistakes(mistakes: Mistake[]): void;
export declare function capture(opts: {
    category: MistakeCategory;
    severity?: MistakeSeverity;
    what: string;
    why: string;
    rule: string;
    tags?: string[];
    agent?: string;
    taskContext?: string;
}): Mistake;
export declare function preflight(taskDescription: string): PreflightMatch[];
export declare function review(): ReviewStats;
export declare function graduate(): number;
export declare function search(query: string): Mistake[];
export interface Confirmation {
    id: number;
    timestamp: string;
    category: MistakeCategory;
    what: string;
    whyItWorked: string;
    whenToRepeat: string;
    tags: string[];
    agent?: string;
    taskContext?: string;
}
export declare function loadConfirmations(): Confirmation[];
export declare function saveConfirmations(confirmations: Confirmation[]): void;
export declare function captureConfirmation(opts: {
    category: MistakeCategory;
    what: string;
    whyItWorked: string;
    whenToRepeat: string;
    tags?: string[];
    agent?: string;
    taskContext?: string;
}): Confirmation;
export declare function searchConfirmations(query: string): Confirmation[];
