site/node_modules/speech-rule-engine/js/semantic_tree/semantic_annotator.d.ts

29 lines
774 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { SemanticNode } from './semantic_node';
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;
}