UNPKG

scriptable-testlab

Version:

A lightweight, efficient tool designed to manage and update scripts for Scriptable.

38 lines (35 loc) 809 B
import { AbsDictation } from 'scriptable-abstract'; interface DictationState { lastText: string | null; lastError: Error | null; } /** * Mock implementation of Scriptable's Dictation global variable * Provides functionality for speech-to-text conversion * * @implements Dictation */ declare class MockDictation extends AbsDictation<DictationState> { static get instance(): MockDictation; constructor(); /** * @inheritdoc */ start(): Promise<string>; /** * @additional * Get the last dictated text */ getLastText(): string | null; /** * @additional * Get the last error if any */ getLastError(): Error | null; /** * @additional * Clear dictation history */ clear(): void; } export { MockDictation };