interface MermaidApi { initialize: (config: Record) => void; parse: (text: string, options?: { suppressErrors?: boolean; }) => Promise; render: (id: string, text: string) => Promise<{ svg: string; }>; } /** Load and configure Mermaid once per page. */ export declare function loadMermaid(): Promise; /** * Render one diagram to a detached node ready to be adopted into a shadow root. * * Repeated definitions are served from cache, so the node is built fresh each * time from a shared SVG string — an element already adopted into one shadow * root cannot be handed to another. */ export declare function renderDiagram(mermaid: MermaidApi, definition: string, theme: string): Promise; export {};