import { type RenderOptions } from "pele/lazy"; import { GraphImage, Flowchart, Sequence, Class, ERD, State, Gantt, QuadrantChart, Timeline, type MermaidConfig } from "../interfaces.js"; export interface PeleConfig { fontSize?: number; maxEdges?: number; /** Maximum number of characters in the definition. */ maxTextSize?: number; /** * Pele's flowchart curve, which it steps state diagrams by too: "step" * draws their edges as elbow arrows. * @default "linear" */ curve?: string; /** Overrides `curve` where set (see `MermaidConfig.elbow`). */ elbow?: MermaidConfig["elbow"]; } /** * Renders a Mermaid definition to the SVG `parsePele` reads it from (or, for * diagram types it doesn't convert, returns as an image), e.g. to compare it * with the conversion. */ export declare const renderPeleSvg: (definition: string, config?: PeleConfig) => Promise; /** * Whether Pele steps a flowchart's edges (or a state diagram's transitions) by * its config: by the caller's `config`, unless the definition's front matter * or directives set the curve, or replace the caller's whole `flowchart` * config. Pele doesn't tell which curve it used, and draws straight edges the * same with any curve, so it's asked to draw the definition with probe edges * with a bend appended: it reads and merges the configs as it does for the * definition alone. As costly as laying the definition out again, so for when * its drawing doesn't tell. Needs its diagram type loaded, and the definition * as Pele parsed it (e.g. after `withLineBreakFallback`). */ export declare const isSteppedDefinition: (definition: string, config?: RenderOptions["config"]) => boolean; /** * Parses a Mermaid definition with Pele, a Mermaid renderer that lays diagrams * out without a DOM. * * Flowcharts, sequence, class, ER and state diagrams, Gantt charts, quadrant * charts and timelines are converted to Excalidraw elements; other diagram * types are returned as an image. */ export declare const parsePele: (definition: string, config?: PeleConfig) => Promise;