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

19 lines
513 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
export interface TrieNode {
kind: TrieNodeKind;
getConstraint(): string;
getKind(): TrieNodeKind;
applyTest(object: any): boolean;
addChild(node: TrieNode): TrieNode | null;
getChild(constraint: string): TrieNode | null;
getChildren(): TrieNode[];
findChildren(object: any): TrieNode[];
removeChild(constraint: string): void;
}
export declare enum TrieNodeKind {
ROOT = "root",
DYNAMIC = "dynamic",
QUERY = "query",
BOOLEAN = "boolean",
STATIC = "static"
}