mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
43 lines (42 loc) • 1.92 kB
TypeScript
import { interpolateToCurve } from './utils.js';
/**
* Internal helpers for mermaid
* @deprecated - This should not be used by external packages, as the definitions will change without notice.
*/
export declare const internalHelpers: {
common: {
getRows: (s?: string | undefined) => string[];
sanitizeText: (text: string, config: import("./config.type.js").MermaidConfig) => string;
sanitizeTextOrArray: (a: string | string[] | string[][], config: import("./config.type.js").MermaidConfig) => string | string[];
hasBreaks: (text: string) => boolean;
splitBreaks: (text: string) => string[];
lineBreakRegex: RegExp;
removeScript: (txt: string) => string;
getUrl: (useAbsolute: boolean) => string;
evaluate: (val?: string | boolean | undefined) => boolean;
getMax: (...values: number[]) => number;
getMin: (...values: number[]) => number;
};
getConfig: () => import("./config.type.js").MermaidConfig;
insertCluster: (elem: any, node: any) => Promise<any>;
insertEdge: (elem: any, edge: any, clusterDb: any, diagramType: any, startNode: any, endNode: any, id: any) => {
updatedPath: any;
originalPath: any;
};
insertEdgeLabel: (elem: any, edge: any) => Promise<any>;
insertMarkers: (elem: any, markerArray: any, type: any, id: any) => void;
insertNode: (elem: any, node: any, dir: any) => Promise<any>;
interpolateToCurve: typeof interpolateToCurve;
labelHelper: (parent: any, node: any, _classes: any) => Promise<{
shapeSvg: any;
bbox: any;
halfPadding: number;
label: any;
}>;
log: Record<import("./logger.js").LogLevel, {
(...data: any[]): void;
(message?: any, ...optionalParams: any[]): void;
}>;
positionEdgeLabel: (edge: any, paths: any) => void;
};
export type InternalHelpers = typeof internalHelpers;