speech-rule-engine
Version:
A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.
19 lines (18 loc) • 513 B
TypeScript
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"
}