/** Live, responsive top-like resource view for orchestrated agents. */ import type { AgentRecord } from "../types.js"; import type { AgentActivity } from "./agent-ui-types.js"; import { type DashboardTheme } from "./theme.js"; export type SortKey = "tokens" | "turns" | "duration" | "toolUses" | "name" | "lastSeen"; export interface AgentTopEntry { id: string; type: string; name: string; status: string; tokens: number; turns: number; toolUses: number; durationMs: number; lastSeenMs: number | undefined; } export declare function getAgentTopEntries(agents: AgentRecord[], activity: Map): AgentTopEntry[]; export declare function sortEntries(entries: AgentTopEntry[], key: SortKey, asc: boolean): AgentTopEntry[]; export declare function createTopThemeAdapter(th: DashboardTheme): { fg(color: string, text: string): string; bold(text: string): string; }; export declare function renderTopTable(entries: AgentTopEntry[], sortKey: SortKey, sortAsc: boolean, page: number, pageSize: number, th: DashboardTheme, width: number, helpLine?: string): string[];