/** * Structured diagram fallback. * * Without an adapter a diagram still has to read as a diagram. When the * connections form one simple chain (every node has at most one way in and one * way out, and the chain visits every node), the nodes are drawn as a flow with * labelled connectors. Any other graph is shown as a set of nodes plus an * explicit connection list, because drawing arrows between nodes that are not * connected would state something the spec does not. */ import type { JsonValue } from '../json.js'; export interface DiagramNode { id: string; label: string; } export interface DiagramEdge { from: string; to: string; label: string; } /** Order nodes along the single chain the edges describe, or return undefined when they do not form one. */ export declare function chainOrder(nodes: DiagramNode[], edges: DiagramEdge[]): DiagramNode[] | undefined; /** Render the fallback body for the described nodes and connections. */ export declare function renderDiagramFallback(described: Record[], connections: Record[]): string; //# sourceMappingURL=diagram-fallback.d.ts.map