import type { ParseResult } from 'langium'; import type { Info, Packet, Pie, Architecture, GitGraph, Radar, Treemap } from './index.js'; export type DiagramAST = Info | Packet | Pie | Architecture | GitGraph | Radar; export declare function parse(diagramType: 'info', text: string): Promise; export declare function parse(diagramType: 'packet', text: string): Promise; export declare function parse(diagramType: 'pie', text: string): Promise; export declare function parse(diagramType: 'architecture', text: string): Promise; export declare function parse(diagramType: 'gitGraph', text: string): Promise; export declare function parse(diagramType: 'radar', text: string): Promise; export declare function parse(diagramType: 'treemap', text: string): Promise; export declare class MermaidParseError extends Error { result: ParseResult; constructor(result: ParseResult); }