/** * Hook for Text-to-Speech functionality */ import type { TTSOptions, TTSVoice } from '../browser-ai/index.js'; /** * Options for useTTS hook */ export interface UseTTSOptions { /** Auto-initialize on mount */ autoInit?: boolean; /** Default TTS options */ defaultOptions?: TTSOptions; } /** * Return type for useTTS hook */ export interface UseTTSReturn { /** Speak text */ speak: (text: string, options?: TTSOptions) => Promise; /** Stop speaking */ stop: () => void; /** Pause speaking */ pause: () => void; /** Resume speaking */ resume: () => void; /** Initialize the adapter (called automatically if autoInit) */ initialize: () => Promise; /** Get available voices */ getVoices: () => TTSVoice[]; /** Current state (reactive) */ readonly isSpeaking: boolean; readonly isPaused: boolean; readonly isReady: boolean; readonly isInitializing: boolean; readonly error: Error | null; readonly downloadProgress: number; } /** * Hook for Text-to-Speech * * @example * ```svelte * * * * * ``` */ export declare function useTTS(options?: UseTTSOptions): UseTTSReturn; //# sourceMappingURL=useTTS.svelte.d.ts.map