/** * Text normalization pipeline that deobfuscates text before scanning. * Zero dependencies, pure TypeScript. */ export type NormalizeResult = { normalized: string; transforms: string[]; }; /** Strip zero-width / invisible formatting characters. */ export declare function stripZeroWidth(input: string): string; /** Detect and decode base64 segments inline. */ export declare function decodeBase64Segments(input: string): string; /** Decode hex escape sequences (\x41 → A). */ export declare function decodeHexEscapes(input: string): string; /** Decode unicode escape sequences (\u0041 → A). */ export declare function decodeUnicodeEscapes(input: string): string; /** Decode HTML entities (named, decimal, and hex). */ export declare function decodeHtmlEntities(input: string): string; /** Map Cyrillic lookalike characters to their Latin equivalents. */ export declare function normalizeHomoglyphs(input: string): string; /** Convert fullwidth characters to standard ASCII. */ export declare function normalizeFullwidth(input: string): string; /** Collapse excessive whitespace into single spaces/newlines. */ export declare function collapseWhitespace(input: string): string; /** * Normalize leetspeak/number substitutions in text. * Only applies when surrounded by letter-like context to avoid * converting legitimate numbers. */ export declare function normalizeLeetspeak(input: string): string; /** * Full normalization pipeline. Applies all transforms in order and * tracks which ones actually modified the text. */ export declare function normalizeText(input: string): NormalizeResult;