import type { GovernancePolicy } from './types.js'; export type LlmFn = (prompt: string) => Promise; export interface GateAudit { at: string; promptChars: number; maskedCount: number; } /** * Conarium LLM gate: run the outgoing prompt through PII-mask + audit, THEN send it to the model. * Usage (jarvis-web/lib/konnektor/llm.ts): * export const claudeLlm = governLlm(rawClaudeLlm, policy, a => appendAudit(a)); * * NOTE (honest): maskPII catches: email (and @ / \\u0040 / %40 forms), * TCKN / phone / card, IBAN (mod-97), MRZ (TD3 checksum), secret patterns. * IP only when `policy.detectors.ip === true`. Street address and bare names * are not structural — column policy / conarium-suggest-policy. */ export declare function governLlm(llm: LlmFn, policy?: GovernancePolicy, onAudit?: (a: GateAudit) => void): LlmFn; //# sourceMappingURL=llm-gate.d.ts.map