import type { ExtensionContext } from "../../types.ts";
import type { ResumptionChannelCounts } from "./monitor-continuation-types.ts";
import { type GoalWaitLabelInput } from "./wait-progress.ts";
/** Footer countdown refresh cadence while a Goal continuation is delayed. */
export declare const GOAL_WAIT_TICK_INTERVAL_MS = 1000;
export declare const GOAL_WAIT_STATUS_KEY = "goal-wait";
/** Receives the freshly formatted footer status text (undefined clears the status). */
export type GoalWaitRender = (ctx: ExtensionContext, status: string | undefined) => void;
export interface GoalWaitTickerOptions {
    readonly render: GoalWaitRender;
    /** Injectable clock for tests; defaults to Date.now. */
    readonly now?: () => number;
}
/**
 * Drives a once-per-second footer countdown while a Goal continuation timer is
 * armed. Mirrors the existing GoalElapsedTicker and MonitorStatusTicker: the
 * interval is unref'd and unchanged visible labels are not rendered again.
 */
export declare class GoalWaitTicker {
    private readonly render;
    private readonly now;
    private intervalId;
    private ctx;
    private kind;
    private dueAtMs;
    private totalMs;
    private channelCounts;
    private lastRenderedStatus;
    constructor(options: GoalWaitTickerOptions);
    get running(): boolean;
    /** Render the current wait immediately and keep it live until stopped. */
    sync(ctx: ExtensionContext, input: GoalWaitLabelInput): void;
    /** Refresh channel wording without changing the countdown deadline. */
    setChannelCounts(channelCounts: ResumptionChannelCounts): void;
    /** Stop ticking, clear the footer segment, and drop the retained context. */
    stop(): void;
    /**
     * Drop the interval and retained ctx without a final render. Used when a tick
     * discovers the ctx was retired by a session replacement or reload: every
     * render against it throws from now on, and a ticker that keeps ticking dead
     * renders freezes the footer forever without crashing. The next sync() with a
     * live ctx re-arms everything.
     */
    private retire;
    private tick;
}
//# sourceMappingURL=wait-ticker.d.ts.map