import type { ContentThrottleOptions } from './types'; /** * 将一次性到达的大段文本按帧顺序推进展示,避免整页突变重绘。 * 不含视觉动画,仅控制「已展示字符数」相对完整 content 的追赶节奏。 */ export declare class ContentThrottle { private displayedLength; private fullContent; private rafId; private timerId; private readonly onFlush; private options; private disposed; constructor(onFlush: (displayed: string) => void, options?: ContentThrottleOptions); private static resolveOptions; setOptions(options?: ContentThrottleOptions): void; /** 接收完整 content 字符串(非增量) */ push(content: string): void; /** 流式结束:立即展示剩余内容(已追上时为 no-op) */ complete(): void; dispose(): void; getDisplayedLength(): number; getFullContent(): string; private ensureTicking; private schedule; private tick; private handleVisibilityChange; private cancelAllTicks; private static isPageVisible; }