/**
 * Iron Dome — Prompt Injection Scanner
 *
 * Port of ~/clawd/skills/iron-dome/scripts/scan.py to TypeScript.
 * Detects prompt injection patterns in text content from untrusted sources
 * (emails, form submissions, API responses, web pages).
 */
export type InjectionSeverity = 'low' | 'medium' | 'high' | 'critical';
export type InjectionCategory = 'fake_system_message' | 'authority_claim' | 'urgency_secrecy' | 'credential_extraction' | 'instruction_injection' | 'encoding_trick' | 'role_manipulation' | 'context_escape' | 'canary';
export interface InjectionDetection {
    category: InjectionCategory | string;
    severity: InjectionSeverity;
    pattern: string;
    match: string;
    description: string;
}
export interface InjectionScanResult {
    clean: boolean;
    riskLevel: 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
    detections: InjectionDetection[];
    textLength: number;
    summary: string;
}
/**
 * Register cloud-synced patterns for injection scanning.
 * Compiles each regex, skipping invalid ones silently.
 */
export declare function setExternalPatterns(patterns: Array<{
    pattern: string;
    category: string;
    severity: string;
}>): void;
/**
 * Returns the count of currently registered external patterns.
 */
export declare function getExternalPatternCount(): number;
/**
 * Scan text for prompt injection patterns.
 */
export declare function scanForInjection(text: string): InjectionScanResult;
