site/node_modules/speech-rule-engine/js/indexing/trie.d.ts

24 lines
702 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { SpeechRule } from '../rule_engine/speech_rule';
import { TrieNode } from './trie_node';
export declare class Trie {
root: TrieNode;
static collectRules_(root: TrieNode): SpeechRule[];
private static printWithDepth_;
private static order_;
constructor();
addRule(rule: SpeechRule): void;
lookupRules(xml: Node, dynamic: string[][]): SpeechRule[];
hasSubtrie(cstrs: string[]): boolean;
toString(): string;
collectRules(): SpeechRule[];
order(): number;
enumerate(opt_info?: {
[key: string]: any;
}): {
[key: string]: any;
};
byConstraint(constraint: string[]): TrieNode;
private enumerate_;
private addNode_;
}