/** * The overview tokenizer: noise stripping, stopword filtering, and term * counting (unigrams + bigrams). Shared vocabulary for keyword selection; * pinned against the pre-optimization oracle in * src/core/__tests__/tokenizer.equivalence.test.ts. */ /** * Each replace is guarded by a necessary condition of its pattern (an email * must contain "@", a URL "http", ...) so clean prose skips the expensive * regex scans entirely. Guards never change the result: when the guard is * false the pattern cannot match. HEX_HASH_RE can skip when no digit remains * because HEXLETTER_RUN_RE has already removed pure-letter hex runs ≥7. */ export declare function stripNoise(text: string): string; export declare function tokenize(text: string): string[]; /** * Term → occurrence count for one text (unigrams then bigrams, each in * first-occurrence order) from a single tokenize() pass. */ export declare function termCounts(text: string): Map;