Files
blog/node_modules/speech-rule-engine/js/rule_engine/speech_rule_context.d.ts
2025-07-16 16:30:56 +00:00

19 lines
829 B
TypeScript

import { Span, SpanAttrs } from '../audio/span.js';
import * as srf from './speech_rule_functions.js';
export declare class SpeechRuleContext {
customQueries: srf.CustomQueries;
customStrings: srf.CustomStrings;
contextFunctions: srf.ContextFunctions;
customGenerators: srf.CustomGenerators;
applyCustomQuery(node: Element, funcName: string): Element[];
applySelector(node: Element, expr: string): Element[];
applyQuery(node: Element, expr: string): Element;
applyConstraint(node: Element, expr: string): boolean;
constructString(node: Element, expr: string): string;
constructSpan(node: Element, expr: string, def: SpanAttrs): Span[];
private constructString_;
parse(functions: [string, srf.SpeechRuleFunction][] | {
[key: string]: srf.SpeechRuleFunction;
}): void;
}