/** * agent-tree.ts — Visual and JSON representations for Agent swarms. * * Provides three export formats (all using parentId for hierarchy): * - `buildAgentTreeMermaid` — Mermaid flowchart diagram * - `buildAgentTreeText` — Unicode box-drawing text tree * - `buildAgentTreeJson` — Structured JSON hierarchy */ import type { AgentRecord } from "./types.js"; /** * Builds a Mermaid Flowchart definition mapping the agent hierarchy. * Uses parentId relationships (same as text and JSON formats). */ export declare function buildAgentTreeMermaid(records: AgentRecord[]): string; /** * Build a plain-text Unicode box-drawing tree of the agent hierarchy. * Uses parentId relationships to determine the tree structure. * * Example output: * agent-1 (Explore) [running] * ├─ agent-2 (Plan) [completed] * │ └─ agent-4 (Explore) [running] * └─ agent-3 (Analysis) [queued] */ export declare function buildAgentTreeText(records: AgentRecord[]): string; /** * Generates a clean JSON array of agent tree nodes with children. * Each root node recursively contains its descendants. */ export declare function buildAgentTreeJson(records: AgentRecord[]): string;