UNPKG

speech-rule-engine

Version:

A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.

29 lines (28 loc) 777 B
import { SemanticNode } from './semantic_node.js'; export declare class SemanticAnnotator { domain: string; name: string; func: (p1: SemanticNode) => any; active: boolean; constructor(domain: string, name: string, func: (p1: SemanticNode) => any); annotate(node: SemanticNode): void; } export declare class SemanticVisitor { domain: string; name: string; func: (p1: SemanticNode, p2: { [key: string]: any; }) => any; def: { [key: string]: any; }; active: boolean; constructor(domain: string, name: string, func: (p1: SemanticNode, p2: { [key: string]: any; }) => any, def?: { [key: string]: any; }); visit(node: SemanticNode, info: { [key: string]: any; }): any; }