import { Node } from '@tiptap/core'; import { GeneralOptions } from '../../types'; export * from './components/RichTextMermaid'; export interface MermaidOptions extends GeneralOptions { HTMLAttributes: Record; } export interface IMermaidAttrs { code?: string; align?: "left" | "center" | "right"; width?: number | string; } declare module "@tiptap/core" { interface Commands { mermaid: { /** * Insert or replace a Mermaid diagram node */ setMermaid: (attrs?: IMermaidAttrs) => ReturnType; /** * Update the alignment of the current Mermaid node */ setMermaidAlign: (align: "left" | "center" | "right") => ReturnType; }; } } export declare const DEFAULT_MERMAID_CODE = "graph TB\n A --> B"; export declare const Mermaid: Node;