@zsviczian/excalidraw
Version:
Excalidraw as a React component
11 lines (10 loc) • 567 B
TypeScript
import type { MermaidConfig } from "@excalidraw/mermaid-to-excalidraw";
import type { ExcalidrawElement } from "@excalidraw/element/types";
import type { MermaidToExcalidrawLibProps } from "./types";
export declare const loadMermaidToExcalidrawLib: () => Promise<MermaidToExcalidrawLibProps>;
export declare const loadMermaidLib: () => Promise<MermaidToExcalidrawLibProps>;
export declare const mermaidToExcalidraw: (mermaidDefinition: string, opts: MermaidConfig) => Promise<{
elements?: ExcalidrawElement[];
files?: any;
error?: string;
} | undefined>;