/**
 * Immune detection — cosine similarity-based threat detection.
 *
 * Sprint-564: C3 — MAAG immune system (simplified: no voyage-4/pgvector in core).
 *
 * Cosine similarity engine for detecting known attack patterns.
 * StressLedger is STORED ISOLATED — NEVER via BrainPort (P4 security).
 * voyage-4 + pgvector integration deferred to external infra (Brain API).
 *
 * Golden fixtures: known attacker corpus with expected cosine thresholds.
 */
export interface ImmuneMemoryEntry {
    /** Embedding vector of the detected pattern. */
    embedding: number[];
    /** Human-readable label. */
    label: string;
    /** Proof hash for L3 anchoring (Vauban Proof Stack). */
    proofHash?: string;
    /** When this entry was recorded. */
    timestamp: number;
}
export interface ImmuneMatch {
    entry: ImmuneMemoryEntry;
    similarity: number;
    threshold: number;
}
/**
 * Cosine similarity between two vectors. Returns 0-1.
 */
export declare function cosineSimilarity(a: number[], b: number[]): number;
/**
 * StressLedger — ISOLATED store for immune memory entries.
 * NEVER stored via BrainPort (P4 security: attack patterns must not
 * be queryable or modifiable through the knowledge graph).
 */
export declare class StressLedger {
    private entries;
    /** Record an immune memory entry. Returns the entry with proof hash. */
    record(embedding: number[], label: string): ImmuneMemoryEntry;
    /** Find all entries above a cosine similarity threshold. */
    search(embedding: number[], threshold?: number): ImmuneMatch[];
    /** Number of stored entries. */
    get size(): number;
    /** Export all entries (for snapshot testing). */
    export(): ImmuneMemoryEntry[];
    /** Clear all entries. */
    clear(): void;
}
export declare const GOLDEN_ATTACK_EMBEDDINGS: ReadonlyArray<{
    label: string;
    embedding: number[];
}>;
/** Run golden fixture validation. Returns false if any fixture fails detection. */
export declare function validateGoldenFixtures(ledger: StressLedger): {
    passed: boolean;
    results: Array<{
        label: string;
        matched: boolean;
        similarity: number;
    }>;
};
//# sourceMappingURL=immune.d.ts.map