/** * @fileoverview Caption Manager Hook - Manages caption state and transcript events * * This hook manages the caption system state, accumulating transcript deltas * and handling caption lifecycle (streaming, finalization, dismissal). * * @internal * Unofficial dev tool for testing speech transcription * * @module @vowel.to/client/components/hooks * @author vowel.to * @license Proprietary */ /** * Caption state */ export interface CaptionState { /** Current caption text */ text: string; /** Role: user or assistant */ role: 'user' | 'assistant'; /** Whether caption is currently visible */ isVisible: boolean; /** Timestamp when caption was created */ timestamp: Date; /** Whether caption is being streamed (deltas arriving) */ isStreaming: boolean; } /** * Hook to manage caption state and transcript events * * @returns Caption state and dismissal function */ export declare function useCaptionManager(): { caption: CaptionState | null; dismissCaption: () => void; showCaption: (text: string, role: "user" | "assistant", isStreaming?: boolean) => void; }; //# sourceMappingURL=useCaptionManager.d.ts.map