export interface SpeechToTextStartOptions {
  onEnd: () => void;
  onError: () => void;
  onTranscript: (transcript: string) => void;
}

export interface SpeechToText {
  readonly isSupported: boolean;
  start(options: SpeechToTextStartOptions): { stop: () => void } | undefined;
}

export interface TextToSpeech {
  readonly isSupported: boolean;
  cancel: () => void;
  speak: (text: string) => void;
}

export interface AccessibilityCapabilities {
  speechToText?: SpeechToText;
  textToSpeech?: TextToSpeech;
}
