UNPKG

1.14 kBTypeScriptView Raw
1import type { D3Element } from '../../mermaidAPI.js';
2import type { MindmapNode } from './mindmapTypes.js';
3declare const db: {
4 readonly clear: () => void;
5 readonly addNode: (level: number, id: string, descr: string, type: number) => void;
6 readonly getMindmap: () => MindmapNode | null;
7 readonly nodeType: {
8 DEFAULT: number;
9 NO_BORDER: number;
10 ROUNDED_RECT: number;
11 RECT: number;
12 CIRCLE: number;
13 CLOUD: number;
14 BANG: number;
15 HEXAGON: number;
16 };
17 readonly getType: (startStr: string, endStr: string) => number;
18 readonly setElementForId: (id: number, element: D3Element) => void;
19 readonly decorateNode: (decoration?: {
20 class?: string;
21 icon?: string;
22 }) => void;
23 readonly type2Str: (type: number) => "rect" | "circle" | "no-border" | "rounded-rect" | "cloud" | "bang" | "hexgon";
24 readonly getLogger: () => Record<import("../../logger.js").LogLevel, {
25 (...data: any[]): void;
26 (message?: any, ...optionalParams: any[]): void;
27 }>;
28 readonly getElementById: (id: number) => any;
29};
30export default db;