import { AgentStatus } from '../components/agents/types'; /** * Classifies *why* an agent is DEGRADED/OFFLINE so the UI can tell the user * whether something is just processing behind the scenes (no action needed) or * whether they have an action item — the two used to be indistinguishable: a * yellow "Degraded" badge with, at best, a raw health string in a tooltip. */ export type DegradedPhase = 'provisioning' | 'attention' | 'none'; export interface AgentHealthHint { phase: DegradedPhase; /** Short human label, e.g. "Finishing setup" / "Needs attention". */ label: string; /** Plain-language guidance: what (if anything) the user should do. */ actionHint: string; /** True when work is happening behind the scenes → show an in-progress spinner. */ inProgress: boolean; } /** * Map an agent's status + health probe reason to a user-facing hint. * Returns `phase: 'none'` for healthy / non-degraded states. */ export declare function classifyAgentHealth(status: AgentStatus, reason?: string | null): AgentHealthHint;