/**
 * The TUI's job widget area above the editor, fed by `job_widget_state`. It shows while some job is
 * live or pending, or a finished one is still lingering: one line per job, newest first, at most
 * {@link MAX_JOB_WIDGET_LINES} plus `+N more`. A finished job stays {@link DONE_LINGER_MS} after it
 * is first seen done; one already done in a new area's first state (a reload re-sends every job the
 * registry still holds) has expired and never shows; skipped jobs never show. Nothing polls: a state redraws only when what it
 * shows changed, and the one timer that runs is the next linger expiry.
 */
import type { Component, TUI } from "@earendil-works/pi-tui";
import type { Theme } from "../../../../modes/interactive/theme/theme.ts";
import type { JobWidgetState } from "./view-types.ts";
export declare const JOB_WIDGET_TUI_KEY = "job-widgets";
export declare const DONE_LINGER_MS = 10000;
type WidgetFactory = (tui: TUI, theme: Theme) => Component & {
    dispose?(): void;
};
export interface JobWidgetAreaOptions {
    setWidget(key: string, content: WidgetFactory | undefined): void;
    env?: NodeJS.ProcessEnv;
    now?: () => number;
}
export declare class JobWidgetArea {
    #private;
    constructor(options: JobWidgetAreaOptions);
    update(state: JobWidgetState): void;
    dispose(): void;
}
export {};
//# sourceMappingURL=tui-widget.d.ts.map