/**
 * Stream Buffer
 * Smooths out streaming text rendering by buffering words and draining them
 * with requestAnimationFrame for a fluid typing effect.
 */
export interface StreamBuffer {
    pendingWords: string[];
    displayedContent: string;
    streamEnded: boolean;
    rafHandle: number | null;
}
export declare function createStreamBuffer(): StreamBuffer;
export declare function appendToBuffer(buffer: StreamBuffer, content: string): void;
export declare function startBufferDrain(buffer: StreamBuffer, onContentUpdate: (content: string) => void): void;
export declare function flushBuffer(buffer: StreamBuffer): string;
export declare function cancelBuffer(buffer: StreamBuffer): void;
export declare function resetBuffer(buffer: StreamBuffer): void;
//# sourceMappingURL=stream-buffer.d.ts.map