export interface DiagramEdge { from: string; to: string; label?: string; } export interface DiagramIR { /** section heading the diagram lives under (null = preamble) */ section: string | null; kind: string; known: boolean; nodes: string[]; edges: DiagramEdge[]; source: string; } export declare const KNOWN_KINDS: Set; export declare function diagramKind(source: string): string; export declare function parseMermaid(source: string, section: string | null): DiagramIR; /** Extract ```mermaid fences from a section's markdown (fence-aware upstream). */ export declare function extractMermaidBlocks(md: string): string[];