import { TokenType } from './patterns'; export interface Token { type: TokenType; value: string; index: number; } export declare class Lexer { private static masterRegex; private static groupIndexMap; /** * Lazy-initializes the master regex for O(1) repeated access. * Compiles all patterns into one giant Regex: (JWT)|(URL)|(EMAIL)|... */ private static init; /** * Scans input string in a single pass (O(N)) and produces a stream of tokens. */ static tokenize(input: string): Token[]; } //# sourceMappingURL=lexer.d.ts.map