cullmann.io/themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts

31 lines
1.1 KiB
TypeScript

import type { D3Element } from '../../mermaidAPI.js';
import type { MindmapNode } from './mindmapTypes.js';
declare const db: {
readonly clear: () => void;
readonly addNode: (level: number, id: string, descr: string, type: number) => void;
readonly getMindmap: () => MindmapNode | null;
readonly nodeType: {
DEFAULT: number;
NO_BORDER: number;
ROUNDED_RECT: number;
RECT: number;
CIRCLE: number;
CLOUD: number;
BANG: number;
HEXAGON: number;
};
readonly getType: (startStr: string, endStr: string) => number;
readonly setElementForId: (id: number, element: D3Element) => void;
readonly decorateNode: (decoration?: {
class?: string;
icon?: string;
}) => void;
readonly type2Str: (type: number) => "rect" | "circle" | "no-border" | "rounded-rect" | "cloud" | "bang" | "hexgon";
readonly getLogger: () => Record<import("../../logger.js").LogLevel, {
(...data: any[]): void;
(message?: any, ...optionalParams: any[]): void;
}>;
readonly getElementById: (id: number) => any;
};
export default db;