UNPKG

r2-navigator-js

Version:

Readium 2 'navigator' for NodeJS (TypeScript)

23 lines (22 loc) 1.31 kB
import { IReadiumElectronWebview } from "./webview/state"; export declare function checkTtsState(wv: IReadiumElectronWebview): void; export declare function playTtsOnReadingLocation(href: string): void; export declare function ttsHandleIpcMessage(eventChannel: string, _eventArgs: any[], eventCurrentTarget: IReadiumElectronWebview): boolean; export declare enum TTSStateEnum { PAUSED = "PAUSED", PLAYING = "PLAYING", STOPPED = "STOPPED" } export declare function ttsListen(ttsListener: (ttsState: TTSStateEnum) => void): void; export declare function ttsPlay(speed: number, voice: SpeechSynthesisVoice | null): void; export declare function ttsPause(): void; export declare function ttsStop(): void; export declare function ttsResume(): void; export declare function ttsPrevious(skipSentences?: boolean): void; export declare function ttsNext(skipSentences?: boolean): void; export declare function ttsOverlayEnable(doEnable: boolean): void; export declare function ttsClickEnable(doEnable: boolean): void; export declare function ttsVoice(voice: SpeechSynthesisVoice | null): void; export declare function ttsPlaybackRate(speed: number): void; export declare function ttsSkippabilityEnable(doEnable: boolean): void; export declare function ttsSentenceDetectionEnable(doEnable: boolean): void;