/** * TUI activity components — the core agent-centric live view. * * @module */ import type { ThemeColors } from "../helpers.ts"; import type { MonitorSnapshot, TaskSnapshot, ActiveFunction, LoopSnapshot, GraphSessionSnapshot, EngineGraphSnapshot } from "../../cli/commands/monitor/monitor-reader.ts"; export declare function renderFunctionLine(props: { c: ThemeColors; fn: ActiveFunction; }): any; export declare function renderDispatchRow(props: { c: ThemeColors; task: TaskSnapshot; snapTimestamp: string | undefined; selected?: boolean; /** Progress indicator data for this task (from snap.progress) */ progress?: { latest_stage: string; percentage?: number; message: string; event_count: number; }; /** Whether this task has active checkpoint data */ hasCheckpoints?: boolean; }): any; export declare function renderGraphActivity(props: { c: ThemeColors; graph: GraphSessionSnapshot; snap: MonitorSnapshot; sessionScope: Set; currentSessionId: string; }): any; /** * Render a rich graph-engine (v2) activity block: per-node status glyphs, * live signal (from graph events keyed by graphId), and cumulative budget. */ export declare function renderEngineGraphActivity(props: { c: ThemeColors; graph: EngineGraphSnapshot; /** graphId → most recent engine phase, fed from live graph events. */ graphSignals?: ReadonlyMap; /** `` `${graphId}::${nodeId}` `` → most recent node status, fed from live graph events. */ nodeSignals?: ReadonlyMap; }): any; export declare function renderLoopActivity(props: { c: ThemeColors; loop: LoopSnapshot; }): any; export declare function renderActivity(props: { c: ThemeColors; fns: ActiveFunction[]; tasks: TaskSnapshot[]; graphs: GraphSessionSnapshot[]; loops: LoopSnapshot[]; engineGraphs?: EngineGraphSnapshot[]; snap: MonitorSnapshot | null; sessionScope: Set; currentSessionId: string; /** graphId → most recent engine phase, from live graph events. */ graphSignals?: ReadonlyMap; /** `` `${graphId}::${nodeId}` `` → most recent node status, from live graph events. */ nodeSignals?: ReadonlyMap; selectedIndex?: number; /** Called when a task row is clicked — passes the row index. */ onSelectTask?: (index: number) => void; /** Called when a task row is double-clicked or single-clicked on already-selected row. */ onOpenDetail?: (index: number) => void; }): any; //# sourceMappingURL=Activity.d.ts.map