export declare const TAIL_MAX_LINES = 5; export declare const TAIL_THROTTLE_MS = 300; export type TailCallback = (tail: string | undefined) => void; export declare class RollingTailBuffer { private readonly onChange; private readonly maxLines; private readonly throttleMs; private lines; private lastNotifiedAt; private pendingFlush; private cleared; private atLineBoundary; constructor(onChange: TailCallback, maxLines?: number, throttleMs?: number); push(raw: string): void; peek(): string | undefined; clear(): void; private scheduleNotify; private fireNotify; }