/** * HackAPrompt Corpus Loader * * Reads the HackAPrompt-format sample JSON (text/category/label/source/language) * produced by scripts/hackaprompt-to-corpus.py and converts each row into the * CorpusSample shape used by the ATR eval harness. * * HackAPrompt is an all-adversarial corpus: every sample is an attempt to * subvert the system prompt. We therefore only measure recall against this * dataset; precision/FP rate is undefined here. For combined precision+recall * use this corpus alongside a benign source (PINT, real-traffic). * * @module agent-threat-rules/eval/hackaprompt-corpus */ import type { CorpusSample } from './corpus.js'; export declare function loadHackaPromptCorpus(dataPath: string): readonly CorpusSample[]; export declare function getHackaPromptCorpusStats(corpus: readonly CorpusSample[]): { total: number; attacks: number; benign: number; byCategory: Record; byDifficulty: Record; }; //# sourceMappingURL=hackaprompt-corpus.d.ts.map