import type { MonitorSnapshotEntry } from "./monitor-registry.ts";
/** Footer live-elapsed refresh cadence while at least one watch is active. */
export declare const MONITOR_STATUS_TICK_INTERVAL_MS = 1000;
/** Receives the freshly formatted footer status text (undefined clears the status). */
export type MonitorStatusRender = (status: string | undefined) => void;
export interface MonitorStatusTickerOptions {
    readonly render: MonitorStatusRender;
    /** Injectable clock for tests; defaults to Date.now. */
    readonly now?: () => number;
    /**
     * Read on every tick: true pulses the watch glyph (agent idle, motion allowed). Defaults to
     * a static glyph. The pulse rides the existing once-per-second tick, so it adds no timer.
     */
    readonly animate?: () => boolean;
}
/**
 * Drives a once-per-second footer refresh while monitors are active so the
 * "◉ watching … (Ns)" elapsed label advances live instead of freezing between
 * registry transitions. Mirrors the goal builtin's GoalElapsedTicker: the
 * interval is unref'd so it never keeps the process alive, ticks that
 * produce the already-rendered label are skipped, and a render that hits a
 * retired extension context retires the ticker until the next sync.
 */
export declare class MonitorStatusTicker {
    private readonly render;
    private readonly now;
    private readonly animate;
    private intervalId;
    private snapshot;
    private lastRenderedStatus;
    private hasRendered;
    constructor(options: MonitorStatusTickerOptions);
    get running(): boolean;
    /**
     * Point the ticker at the current monitor snapshot, render once immediately,
     * and start the interval when watches are live (or stop it when none remain).
     */
    sync(snapshot: readonly MonitorSnapshotEntry[]): void;
    /** Stop the interval and drop the retained snapshot. */
    stop(): void;
    private stopInterval;
    /** Returns false when the render hit a retired context and the ticker retired. */
    private tick;
}
//# sourceMappingURL=monitor-status-ticker.d.ts.map