/** * Evasion pattern definitions for detecting common tricks users employ * to bypass sensitive word filters */ /** * Character substitution map - common replacements used in leet speak and evasion */ export declare const CHARACTER_SUBSTITUTIONS: { [key: string]: string[]; }; /** * Arabic letter substitutions - similar looking characters and common evasion tricks */ export declare const ARABIC_SUBSTITUTIONS: { [key: string]: string[]; }; /** * Zero-width and invisible characters that should be removed */ export declare const INVISIBLE_CHARACTERS: string[]; /** * Arabic Tatweel (kashida) - used to stretch words */ export declare const ARABIC_TATWEEL = "\u0640"; /** * Reverse map for quick lookup (English) */ export declare const REVERSE_SUBSTITUTIONS: { [key: string]: string; }; /** * Reverse map for Arabic substitutions */ export declare const REVERSE_ARABIC_SUBSTITUTIONS: { [key: string]: string; }; /** * Arabic to English character lookalikes */ export declare const ARABIC_ENGLISH_LOOKALIKES: { [key: string]: string; }; /** * Common symbol patterns used to obfuscate words */ export declare const SYMBOL_PATTERNS: { pattern: RegExp; replacement: string; }[]; /** * Patterns for detecting space insertion */ export declare const SPACE_PATTERNS: RegExp[]; /** * Maximum repeated character threshold */ export declare const MAX_REPEATED_CHARS = 2; /** * Common phonetic variations */ export declare const PHONETIC_VARIATIONS: { [key: string]: string[]; }; /** * Normalize text by applying all evasion pattern removals */ export declare function normalizeForEvasion(text: string, options?: { removeSymbols?: boolean; removeSpaces?: boolean; normalizeRepeated?: boolean; substituteCharacters?: boolean; handleLanguageMixing?: boolean; removeInvisible?: boolean; removeTatweel?: boolean; normalizeArabic?: boolean; }): string; /** * Aggressive normalization for paranoid mode - removes EVERYTHING suspicious */ export declare function normalizeParanoid(text: string): string; /** * Generate all possible evasion variants of a word */ export declare function generateEvasionVariants(word: string): string[]; /** * Detect which evasion technique was used */ export declare function detectEvasionTechnique(original: string, _normalized: string): string[]; //# sourceMappingURL=evasion-patterns.d.ts.map