export interface SpeechInputOptions { /** The in-progress phrase, replacing whatever was reported before it. */ onPartial?: (text: string) => void; /** BCP-47 language tag for the browser recognizer. */ language?: string; } export interface SpeechInputReturn { isListening: boolean; toggleSpeech: () => Promise; isSpeechSupported: boolean; /** The phrase currently being spoken; empty between phrases. */ partial: string; /** The most recent thing heard, partial or settled. */ lastPhrase: string; /** Increments on every `lastPhrase` update, repeats included. */ phraseId: number; } export declare function useSpeechInput( /** Called once per settled phrase — append it, do not replace the input. */ onTranscript: (transcript: string) => void, onEnd: () => void, options?: SpeechInputOptions): SpeechInputReturn;