1 | import { DiagramDefinition, DiagramDetector } from './types.js';
|
2 | import * as _commonDb from '../commonDb.js';
|
3 | export declare const log: Record<import("../logger.js").LogLevel, {
|
4 | (...data: any[]): void;
|
5 | (message?: any, ...optionalParams: any[]): void;
|
6 | }>;
|
7 | export declare const setLogLevel: (level?: string | number) => void;
|
8 | export declare const getConfig: () => import("../config.type.js").MermaidConfig;
|
9 | export declare const sanitizeText: (text: string) => string;
|
10 | export declare const setupGraphViewbox: (graph: any, svgElem: any, padding: any, useMaxWidth: any) => void;
|
11 | export declare const getCommonDb: () => typeof _commonDb;
|
12 | export declare const parseDirective: (p: any, statement: string, context: string, type: string) => void;
|
13 | export interface Detectors {
|
14 | [key: string]: DiagramDetector;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare const registerDiagram: (id: string, diagram: DiagramDefinition, detector?: DiagramDetector) => void;
|
26 | export declare const getDiagram: (name: string) => DiagramDefinition;
|
27 | export declare class DiagramNotFoundError extends Error {
|
28 | constructor(message: string);
|
29 | }
|