import { DOMAdaptor, minWorker } from '../../core/DOMAdaptor.js'; import { OptionList } from '../../util/Options.js'; import { Message, ClientCommand, Structure } from './MessageTypes.js'; import { SpeechMathItem } from '../speech.js'; export declare class WorkerHandler { adaptor: DOMAdaptor; private options; ready: boolean; private tasks; protected worker: minWorker; constructor(adaptor: DOMAdaptor, options: OptionList); Start(): Promise; private debug; Listener(event: MessageEvent): void; Post(msg: ClientCommand, item?: SpeechMathItem): Promise; private postNext; Cancel(item: SpeechMathItem): void; Setup(options: OptionList): Promise; Speech(math: string, options: OptionList, item: SpeechMathItem): Promise; nextRules(math: string, options: OptionList, item: SpeechMathItem): Promise; nextStyle(math: string, options: OptionList, nodeId: string, item: SpeechMathItem): Promise; speechFor(math: string, options: OptionList, item: SpeechMathItem): Promise; Attach(item: SpeechMathItem, speech: boolean, braille: boolean, structure: string): void; protected setSpeechAttribute(node: N, data: Structure, speech: boolean, braille: boolean): void; protected setSpeechAttributes(root: N | T, rootId: string, data: Structure, speech: boolean, braille: boolean): string; protected setSpecialAttributes(node: N, map: OptionList, prefix: string, keys?: string[]): void; Detach(item: SpeechMathItem): void; detachSpeech(node: N): void; Terminate(): Promise | void; Stop(): Promise; clearspeakLocalePreferences(options: OptionList, prefs: Map): Promise; clearspeakRelevantPreferences(math: string, nodeId: string, prefs: Map, counter: number): Promise; Commands: { [id: string]: (handler: WorkerHandler, data: Message) => void; }; }