import type { CharacterQueueOptions } from './types';
/**
 * 字符队列——流式渲染的调度核心。
 *
 * - 接收 SSE 推送的 content（完整字符串，非增量）
 * - 标签页可见时以 RAF 驱动逐字输出（60fps 动画）
 * - 标签页不可见时降级为 setTimeout，保证后台仍能消费
 * - 切回前台时自动恢复 RAF
 */
export declare class CharacterQueue {
    private displayedLength;
    private fullContent;
    private rafId;
    private timerId;
    private tickMode;
    private onFlush;
    private options;
    private disposed;
    constructor(onFlush: (displayed: string) => void, options?: CharacterQueueOptions);
    /** SSE token 到达时调用——接收完整的 content 字符串 */
    push(content: string): void;
    /** 标记流式完成，flush 所有剩余内容 */
    complete(): void;
    /** 释放资源 */
    dispose(): void;
    getDisplayedLength(): number;
    getFullContent(): string;
    private ensureTicking;
    private tick;
    private scheduleNext;
    private handleVisibilityChange;
    private isTickActive;
    private cancelAllTicks;
}
