123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- import { AuditoryDescription } from '../audio/auditory_description.js';
- import * as Dcstr from '../rule_engine/dynamic_cstr.js';
- import * as EngineConst from './engine_const.js';
- export declare class SREError extends Error {
- message: string;
- name: string;
- constructor(message?: string);
- }
- export declare class Engine {
- static BINARY_FEATURES: string[];
- static STRING_FEATURES: string[];
- private static instance;
- customLoader: (locale: string) => Promise<string>;
- evaluator: (p1: string, p2: Dcstr.DynamicCstr) => string | null;
- defaultParser: Dcstr.DynamicCstrParser;
- parser: Dcstr.DynamicCstrParser;
- parsers: {
- [key: string]: Dcstr.DynamicCstrParser;
- };
- dynamicCstr: Dcstr.DynamicCstr;
- comparator: Dcstr.Comparator;
- mode: EngineConst.Mode;
- init: boolean;
- delay: boolean;
- comparators: {
- [key: string]: () => Dcstr.Comparator;
- };
- domain: string;
- style: string;
- _defaultLocale: string;
- set defaultLocale(loc: string);
- get defaultLocale(): string;
- locale: string;
- subiso: string;
- modality: string;
- speech: EngineConst.Speech;
- markup: EngineConst.Markup;
- mark: boolean;
- automark: boolean;
- character: boolean;
- cleanpause: boolean;
- cayleyshort: boolean;
- linebreaks: boolean;
- rate: string;
- walker: string;
- structure: boolean;
- aria: boolean;
- ruleSets: string[];
- strict: boolean;
- isIE: boolean;
- isEdge: boolean;
- pprint: boolean;
- config: boolean;
- rules: string;
- prune: string;
- static getInstance(): Engine;
- static defaultEvaluator(str: string, _cstr: Dcstr.DynamicCstr): string;
- static nodeEvaluator: (node: Element) => AuditoryDescription[];
- static evaluateNode(node: Element): AuditoryDescription[];
- getRate(): number;
- setDynamicCstr(opt_dynamic?: Dcstr.AxisMap): void;
- private constructor();
- configurate(feature: {
- [key: string]: boolean | string;
- }): void;
- setCustomLoader(fn: any): void;
- }
- export default Engine;
- export declare class EnginePromise {
- static loaded: {
- [locale: string]: [boolean, boolean];
- };
- static promises: {
- [locale: string]: Promise<string>;
- };
- static get(locale?: string): Promise<string>;
- static getall(): Promise<string[]>;
- }
|