UNPKG

@langchain/core

Version:
19 lines (18 loc) 564 B
import { Edge } from "./types.js"; /** * Draws a Mermaid graph using the provided graph data */ export declare function drawMermaid(nodes: Record<string, string>, edges: Edge[], config?: { firstNodeLabel?: string; lastNodeLabel?: string; curveStyle?: string; withStyles?: boolean; nodeColors?: Record<string, string>; wrapLabelNWords?: number; }): string; /** * Renders Mermaid graph using the Mermaid.INK API. */ export declare function drawMermaidPng(mermaidSyntax: string, config?: { backgroundColor?: string; }): Promise<Blob>;