export type DiagramType = 'flowchart' | 'sequence' | 'class' | 'state' | 'er' | 'pie' | 'gantt' | 'gitGraph' | 'mindmap' | 'timeline' | 'journey' | 'xychart' | 'quadrantChart' | 'requirement' | 'c4' | 'sankey' | 'block' | 'packet' | 'kanban' | 'architecture' | 'radar' | 'treemap' | 'info' | 'agentflow' | 'usecase' | 'railroad' | 'treeView' | 'venn' | 'cynefin' | 'wardley' | 'swimlane' | 'ishikawa' | 'eventmodeling'; declare const DETECTORS: readonly [readonly ["flowchart", "flowchart-elk", RegExp], readonly ["mindmap", "mindmap", RegExp], readonly ["architecture", "architecture", RegExp], readonly ["agentflow", "agentflow", RegExp], readonly ["c4", "c4", RegExp], readonly ["kanban", "kanban", RegExp], readonly ["class", "classDiagram", RegExp], readonly ["er", "er", RegExp], readonly ["gantt", "gantt", RegExp], readonly ["info", "info", RegExp], readonly ["pie", "pie", RegExp], readonly ["requirement", "requirement", RegExp], readonly ["sequence", "sequence", RegExp], readonly ["swimlane", "swimlane", RegExp], readonly ["flowchart", "flowchart-v2", RegExp], readonly ["timeline", "timeline", RegExp], readonly ["gitGraph", "gitGraph", RegExp], readonly ["state", "stateDiagram", RegExp], readonly ["journey", "journey", RegExp], readonly ["quadrantChart", "quadrantChart", RegExp], readonly ["sankey", "sankey", RegExp], readonly ["packet", "packet", RegExp], readonly ["xychart", "xychart", RegExp], readonly ["block", "block", RegExp], readonly ["eventmodeling", "eventmodeling", RegExp], readonly ["treeView", "treeView", RegExp], readonly ["radar", "radar", RegExp], readonly ["ishikawa", "ishikawa", RegExp], readonly ["treemap", "treemap", RegExp], readonly ["railroad", "railroad", RegExp], readonly ["railroad", "railroadEbnf", RegExp], readonly ["railroad", "railroadAbnf", RegExp], readonly ["railroad", "railroadPeg", RegExp], readonly ["venn", "venn", RegExp], readonly ["wardley", "wardley", RegExp], readonly ["cynefin", "cynefin", RegExp], readonly ["usecase", "usecase", RegExp]]; export type MermaidType = (typeof DETECTORS)[number][1]; export interface Detected { type: DiagramType; mermaidType: MermaidType; } export declare function detectDiagram(cleaned: string): Detected | null; export declare function detect(cleaned: string): DiagramType | null; export {};