import type { TextStreamData } from "@obi/obi-client";
export type UseAgentCaptionsFromStreamsOptions = {
    /** Delay in ms before displaying captions (used to sync with avatar video audio delay) */
    delayMs?: number;
};
/**
 * Hook that returns the current transcription caption for the remote agent from text streams.
 *
 * Accumulates text until it reaches MAX_CAPTION_LENGTH, then lingers briefly
 * on the current text before clearing to start fresh. This creates a readable
 * caption experience without needing timing data from the server.
 *
 * This hook matches the behavior of obi-meet's useAgentCaptions exactly but
 * consumes TextStreamData[] directly instead of using LiveKit React hooks.
 *
 * @param streams - Array of text stream data from ObiSession's captions event
 * @param options.delayMs - Optional delay before displaying captions to sync with audio
 */
export declare function useAgentCaptionsFromStreams(streams: TextStreamData[], options?: UseAgentCaptionsFromStreamsOptions): {
    caption: string;
    hasCaption: boolean;
};
