import type { BackgroundAgentRegistry, BackgroundJob } from '../agent/background-registry.js'; export interface BackgroundStatusBarOptions { stream?: NodeJS.WriteStream; throttleMs?: number; getAdjacentRows?: () => number; } export declare class BackgroundStatusBar { private readonly stream; private readonly registry; private readonly throttleMs; private started; private lastRepaint; private spinnerIndex; private spinnerInterval; private resizeUnsub; private resizeImmediateUnsub; private registryStartedHandler; private registrySettledHandler; private rowCount; private lastPaintStartRow; private preResizeStartRow; private preResizeRowCount; private onRowCountChange?; private readonly getAdjacentRows; constructor(registry?: BackgroundAgentRegistry, opts?: BackgroundStatusBarOptions); setRowCountChangeHandler(handler: (rows: number) => void): void; start(): void; stop(): void; private resetGeometry; private scheduleRepaint; redraw(): void; private repaint; private clearRows; private clearPreResizeRows; private formatItemLine; formatJobLine(job: BackgroundJob): string; }