/** * Known-miss registry for aidefence_learn (#4147). * * The detector's learned patterns are written by `learnFromDetection`, but * they are only created from threats the detector already found, and * `detect()` never reads them back. A threat the detector MISSED (a false * negative, the case feedback matters most for) therefore had nowhere to go. * * This registry stores a SHA-256 of the whitespace/case-normalised input so a * reported miss is flagged next time the identical text is scanned. It is an * exact-match list, not generalisation: the raw text is never stored. */ export interface KnownMiss { hash: string; threatType: string; reportedAt: string; } export declare function hashInput(input: string): string; /** Returns true when the miss was newly recorded, false when it was already known. */ export declare function recordKnownMiss(input: string, threatType: string, cwd?: string): boolean; /** * Removes exactly the entry whose hash AND threatType match (#4862), leaving * every other entry in place. Returns true when an entry was removed. When * nothing matches the store is not rewritten, so a no-op leaves it untouched. */ export declare function retractKnownMiss(input: string, threatType: string, cwd?: string): boolean; export declare function findKnownMiss(input: string, cwd?: string): KnownMiss | undefined; //# sourceMappingURL=aidefence-known-misses.d.ts.map