/** * Finds attempts to instruct the AI inside a bug report. * * A bug report may legitimately talk about admins, verification, SQL or scripts: those are symptoms, and the product's * own security bugs are exactly what customers should report. What a report must never do is address the model that * reads it ("ignore your instructions", fake role tags) or steer the code it writes ("when you fix this, also add..."). * Only that is flagged. The model is told the report is data regardless; this check keeps obvious attempts away from * it entirely, and out of the fix loop. */ /** Lowercase, compatibility-normalized ("ignore" is "ignore"), invisible characters removed, whitespace collapsed. */ export declare function normalizeForDetection(text: string): string; export interface InjectionField { text: string | undefined; /** Decode percent-encoding before checking. */ url?: boolean; } /** The first injection pattern found in any field, or undefined. */ export declare function findInjection(fields: InjectionField[]): RegExp | undefined; //# sourceMappingURL=injection.d.ts.map