/** * Speech synthesis state */ export type SpeechState = { speaking: boolean; paused: boolean; pending: boolean; error: string | null; supported: boolean; }; /** * Speech synthesis controls */ export type SpeechControls = { speak: (text: string, options?: SpeechSynthesisUtterance) => void; pause: () => void; resume: () => void; stop: () => void; cancel: () => void; getVoices: () => SpeechSynthesisVoice[]; }; /** * Hook that synthesizes speech from a text string * * @returns Speech state and controls * * @example * ```tsx * const { speaking, speak, stop } = useSpeech(); * * return ( *
* * *
* ); * ``` */ export declare function useSpeech(): SpeechState & SpeechControls; //# sourceMappingURL=useSpeech.d.ts.map