export interface SpeechSynthesisState { speak: (text: string, opts?: Partial) => void; cancel: () => void; pause: () => void; resume: () => void; speaking: boolean; pending: boolean; paused: boolean; voice?: SpeechSynthesisVoice; } /** * A hook that provides access to system voices. * @returns Array of available speech synthesis voices */ export declare function useSystemVoices(): SpeechSynthesisVoice[]; /** * A hook that provides speech synthesis functionality. * @returns Object containing speech synthesis controls and state * * @example * const { speak, pause, resume } = useSpeechSynthesis(); * speak('Hello world', { rate: 1.5 }); */ export declare function useSpeechSynthesis(): SpeechSynthesisState;