import type { BackgroundAgentRegistry } from '../agent/background-registry.js'; import type { SessionStats } from './slash/types.js'; export interface HealthRailOptions { stream?: NodeJS.WriteStream; backgroundRegistry?: BackgroundAgentRegistry; getExtraRows: () => number; } export declare class HealthRail { private readonly stream; private readonly registry; private readonly getExtraRows; private started; private snapshot; private onRowCountChange?; private resizeUnsub; private tickInterval; private totalSubsEver; constructor(opts: HealthRailOptions); setRowCountChangeHandler(handler: (rows: number) => void): void; start(): void; stop(): void; update(stats: SessionStats, contextRatioOverride?: number): void; redraw(): void; private repaint; private clearRow; }