export declare class TrieNode { children: Map; fail: TrieNode | null; outputs: Set; } /** * A highly optimized, zero-dependency Aho-Corasick automaton implementation * tailored for multi-pattern keyword scaling in JS/TS applications. */ export declare class AhoCorasick { private root; private isCompiled; /** * Initialize a new automaton with an array of keywords. */ constructor(keywords: string[]); private insert; private buildFailureLinks; /** * Search input text and return a set of matched keywords. * Runs in O(n + m) time complexity. */ search(text: string): string[]; }