import { type Theme } from "@earendil-works/pi-coding-agent"; import { type Component, type TUI } from "@earendil-works/pi-tui"; import type { ChartAst } from "@surprisal/hyperchart/internal/core/types"; export type RunComponentOptions = { runId: string; runDir: string; logPath: string; ast: ChartAst; branchId?: string; live?: boolean; cwd?: string; }; export type RunHistoryItem = { runId: string; branchId?: string; runDir: string; chartId: string; state: string; live: boolean; final: boolean; sessionCount: number; createdAt: string; updatedAt: string; }; export type RunHistoryAction = { kind: "view"; runId: string; } | { kind: "close"; }; /** A deliberately small picker. Detailed run information belongs in the browser inspector. */ export declare class RunHistoryOverlay implements Component { private readonly tui; private readonly theme; private readonly opts; private selected; private readonly list; constructor(tui: TUI, theme: Theme, opts: { cwd: string; items: readonly RunHistoryItem[]; done: (action: RunHistoryAction) => void; }); invalidate(): void; handleInput(data: string): void; render(width: number): string[]; private move; } /** Compact live progress only. All graph, transcript, and session details live in the browser inspector. */ export declare class RunWidget implements Component { private readonly tui; private readonly theme; private readonly opts; private view; private progress; private progressPercent; private refreshError; private disposed; private lastStat; private readonly timer; constructor(tui: TUI, theme: Theme, opts: RunComponentOptions); invalidate(): void; render(width: number): string[]; dispose(): void; private refresh; private handleRefreshError; } //# sourceMappingURL=components.d.ts.map