import type { AgentDiagramData } from '../../types/diagram.js'; /** * Parse mermaid source into an `AgentDiagramData`. Supports `flowchart`/`graph` * (with subgraphs and the full shape vocabulary) and `erDiagram`. The optional * `title:` from a YAML frontmatter block is honored. */ export declare function mermaidToDiagram(source: string): AgentDiagramData; /** Extract the first ```mermaid fenced block from markdown, or null if none. */ export declare function extractMermaidFromMarkdown(markdown: string): string | null; /** * Parse markdown: route its first ```mermaid``` fence through {@link mermaidToDiagram}. * Throws if the markdown carries no mermaid block. */ export declare function markdownToDiagram(markdown: string): AgentDiagramData;