import { ReadAloudChunk, ReadAloudOptions, ReadAloudState } from '../client/read-aloud'; export interface UseReadAloudOptions extends Omit { /** Called as each chunk starts playing (e.g. to highlight it in the document). */ onChunk?: (chunk: ReadAloudChunk) => void; } export interface UseReadAloudReturn { state: ReadAloudState; /** True while loading, speaking, or paused. */ isActive: boolean; isSpeaking: boolean; isPaused: boolean; /** The chunk currently being spoken, or `null` between utterances. */ currentChunk: ReadAloudChunk | null; error: Error | null; speak: (text: string) => Promise; pause: () => void; resume: () => void; stop: () => void; /** Speak `text`, or stop if something is already playing. */ toggle: (text: string) => void; } export declare function useReadAloud(options?: UseReadAloudOptions): UseReadAloudReturn;