/**
* StreamingText - Renders AI response text with optional cursor
*
* Displays text as it streams in from the AI. The parent component
* is responsible for accumulating text chunks and passing them via
* the `text` prop. This component simply renders what it receives,
* optionally showing a cursor when streaming is in progress.
*/
import React from 'react';
/**
* Props for the StreamingText component
*/
export interface StreamingTextProps {
/** The accumulated text to display */
text: string;
/** Whether streaming is still in progress */
isStreaming: boolean;
/** Optional text color (defaults to white) */
color?: string;
/** Whether to show cursor when streaming (defaults to true) */
showCursor?: boolean;
}
/**
* StreamingText component
*
* Renders text with an optional cursor indicator when streaming.
* The cursor appears at the end of the text while `isStreaming` is true.
*
* @example
* ```tsx
* // During streaming
*
* // Renders: "Hello, worldâ–ˆ"
*
* // After streaming completes
*
* // Renders: "Hello, world!"
* ```
*/
export declare function StreamingText({ text, isStreaming, color, showCursor, }: StreamingTextProps): React.ReactElement;