speech-rule-engine
Version:
A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.
28 lines (27 loc) • 1.03 kB
TypeScript
import { DynamicCstr } from '../rule_engine/dynamic_cstr.js';
import { AxisMap, AxisProperties, DefaultComparator, DynamicProperties } from '../rule_engine/dynamic_cstr.js';
import { SemanticNode } from '../semantic_tree/semantic_node.js';
export declare class ClearspeakPreferences extends DynamicCstr {
preference: {
[key: string]: string;
};
static comparator(): Comparator;
static getLocalePreferences(opt_dynamic?: {
[key: string]: AxisProperties;
}): {
[key: string]: AxisProperties;
};
static relevantPreferences(node: SemanticNode): string;
private static getLocalePreferences_;
constructor(cstr: AxisMap, preference: {
[key: string]: string;
});
equal(cstr: ClearspeakPreferences): boolean;
}
declare class Comparator extends DefaultComparator {
preference: AxisMap;
constructor(cstr: DynamicCstr, props: DynamicProperties);
match(cstr: DynamicCstr): boolean;
compare(cstr1: DynamicCstr, cstr2: DynamicCstr): 0 | 1 | -1;
}
export {};