import type { Theme } from "@earendil-works/pi-coding-agent";
import type { Component } from "@earendil-works/pi-tui";
import type { OrchestratorTree } from "./orchestrator-tree.js";
export declare class OrchestratorStatusBar implements Component {
    private tree;
    private theme;
    private active;
    private disposed;
    private invalidationCb?;
    private spinnerTimer?;
    private spinnerIdx;
    private onAction?;
    private disposeFns;
    constructor(tree: OrchestratorTree, theme: Theme);
    setInvalidationCallback(cb: () => void): void;
    setOnAction(cb: () => void): void;
    setActive(active: boolean): void;
    isActive(): boolean;
    private ensureSpinnerTimer;
    private stopSpinnerTimer;
    render(width: number): string[];
    invalidate(): void;
    dispose(): void;
    /** Walk depth-first to find the deepest running/cancelling leaf. */
    private findDeepestRunningLeaf;
}
