trie.d.ts 726 B

1234567891011121314151617181920212223
  1. import { SpeechRule } from '../rule_engine/speech_rule.js';
  2. import { TrieNode } from './trie_node.js';
  3. export declare class Trie {
  4. root: TrieNode;
  5. static collectRules_(root: TrieNode): SpeechRule[];
  6. private static printWithDepth_;
  7. private static order_;
  8. constructor();
  9. addRule(rule: SpeechRule): void;
  10. lookupRules(xml: Element, dynamic: string[][]): SpeechRule[];
  11. hasSubtrie(cstrs: string[]): boolean;
  12. toString(): string;
  13. collectRules(root?: TrieNode): SpeechRule[];
  14. order(): number;
  15. enumerate(opt_info?: {
  16. [key: string]: any;
  17. }): {
  18. [key: string]: any;
  19. };
  20. byConstraint(constraint: string[]): TrieNode;
  21. private enumerate_;
  22. private addNode_;
  23. }