/** * AIDefence content gate for ruRE (ADR-0001 §dual-use policy). * * Every string literal, comment, and identifier ruRE extracts comes from a * target the user may not control. Before any of it is returned to the * caller (and therefore to the model that synthesizes an explanation), it is * routed through this gate. Mirrors the lazy-load pattern used by * browser-intent-tools.ts's private gateWithAIDefence — @claude-flow/aidefence * is itself an optional dependency, so absence degrades to pass-through * rather than blocking analysis. */ /** Longest attacker-derived string returned or scanned; anything longer is clipped first. */ export declare const MAX_GATED_CHARS = 2048; export declare function clipText(text: string): string; export interface GatedText { text: string; flagged: boolean; gated: boolean; } export declare function gateWithAIDefence(input: string): Promise; /** Gate every string in an array, preserving order and length. Sequential — * gating is cheap, and this avoids firing the first-ever (memoized) module * resolution attempt from several calls at once. */ export declare function gateAll(texts: string[]): Promise; //# sourceMappingURL=aidefence-gate.d.ts.map