import type { Edge } from "./types.js"; export type NodeType = "start" | "end" | "node" | "subgraph"; export interface GraphNode { id: string; type: NodeType; hasRetry: boolean; isSubgraph: boolean; } export interface GraphEdge { from: string; to: string; type: "static" | "conditional"; label?: string; } export interface GraphDescriptor { nodes: GraphNode[]; edges: GraphEdge[]; /** Nodes that have no outgoing edges to non-END nodes */ terminals: string[]; /** Nodes that can reach themselves (cycles) */ cycles: string[][]; /** Topologically sorted node order (if acyclic) */ topoOrder: string[] | null; } export declare function buildGraphDescriptor(nodeMap: Map, edges: Edge[]): GraphDescriptor; export declare function toMermaidDetailed(descriptor: GraphDescriptor): string; //# sourceMappingURL=inspect.d.ts.map