import type { SubagentActiveStatus, SubagentAgentState, SubagentsLiveStateEvent, SubagentRegistry, SubagentRegistryAgent, SubagentRegistryRun, SubagentRenderMode, SubagentRunRenderDetails, SubagentStatus, SubagentTaskPreview, SubagentTerminalStatus } from "../types.js"; export declare function isSubagentsToolName(toolName: string): boolean; export declare function isSubagentStatus(value: unknown): value is SubagentStatus; export declare function isSubagentActiveStatus(value: SubagentStatus): value is SubagentActiveStatus; export declare function isSubagentTerminalStatus(value: SubagentStatus): value is SubagentTerminalStatus; export declare function isSubagentRenderMode(value: unknown): value is SubagentRenderMode; export declare function isSubagentAgentState(value: unknown): value is SubagentAgentState; export declare function isSubagentTaskPreview(value: unknown): value is SubagentTaskPreview; export declare function isSubagentRunRenderDetails(value: unknown): value is SubagentRunRenderDetails; export declare function isSubagentsLiveStateEvent(value: unknown): value is SubagentsLiveStateEvent; export declare function isSubagentRegistryRun(runId: string, value: unknown): value is SubagentRegistryRun; export declare function isSubagentRegistryAgent(agentId: string, value: unknown): value is SubagentRegistryAgent; export declare function isSubagentRegistry(value: unknown): value is SubagentRegistry; /** * Agent icon names accepted in sub-agent `icon:` frontmatter (both bundled * agents and `.pi/agents/*.md`). Keys mirror APP_ICONS entries and the Pix * Desktop lucide mapping (desktop/src/lib/agent-icons.ts); status is conveyed * by color, not by the glyph. */ export declare const SUBAGENT_ICON_NAMES: readonly ["agent", "search", "code", "flask", "globe", "sparkles", "brain", "wrench", "terminal", "bug", "book", "eye", "zap", "rocket"]; export type SubagentIconName = (typeof SUBAGENT_ICON_NAMES)[number]; export declare function isSubagentIconName(value: string): value is SubagentIconName; /** * Resolve the per-agent icon glyph from the task preview. Unknown or missing * icon names fall back to the neutral agent glyph. */ export declare function subagentIcon(preview: SubagentTaskPreview | undefined): string; export declare function formatSubagentsPanelStats(agents: readonly SubagentAgentState[]): string; export declare function subagentModelThinkingLabel(preview: SubagentTaskPreview | undefined): string; export declare function activeSubagentStates(agents: readonly SubagentAgentState[]): SubagentAgentState[]; export declare function allSubagentStatesTerminal(agents: readonly SubagentAgentState[]): boolean; export declare function taskPreviewMap(tasks: readonly SubagentTaskPreview[] | undefined): Map; export declare function formatSubagentTimestamp(value: string | undefined): string | undefined; export declare function formatElapsedSince(value: string | undefined, now?: number): string; export declare function formatSubagentLastActivity(activity: SubagentAgentState["lastActivity"]): string | undefined; export declare function subagentRunName(runDir: string): string; export declare function resolveSubagentRunDir(cwd: string, runDir: string): string;