import type { MindMapNode, MindMapTheme, MindMapSettings, NodeStyle, MindMapImage, MindMapRelation } from '../types'; type __VLS_Props = { data: MindMapNode; theme?: MindMapTheme; /** * When true, hides the MindMap's own toolbar and disables every * edit operation (add/remove/edit/drag/paste/rich-edit/note * edit/context menu). Expand/collapse stays available so the * user can still navigate a large tree. The app-level top * toolbar / drawers are controlled by the parent (App.vue). */ previewMode?: boolean; /** * Optional raw markdown source. When set, the component parses * it into the data tree and ignores `data` (use one or the * other). Editing nodes on the canvas emits `markdownChange` * with the re-serialized form, so the host can keep its * markdown source in sync without polling. Pass an empty * string to clear. */ markdown?: string; /** * Optional per-edge color list. When set, top-level branches * draw their edges (and their descendant edges under * `rainbowBranch`) using these colors in order, wrapping * around. Overrides the palette picked by `branchPaletteId` * / `customPalettes`. Pass an empty array to fall back to * the palette pipeline. */ lineColors?: string[]; /** * When true, hides the built-in canvas action buttons * (top-right preview toggle, top-left outline view). Use this * when the consumer already exposes equivalent controls in * their surrounding chrome and doesn't want duplicates. Default * false so the npm package ships with a discoverable, ready-to-use * UI. */ hideCanvasActions?: boolean; /** * When true (default), MindMap renders its own Drawer + Panel * components for settings / data / markdown / note / outline — * the same experience as the library's built-in MindMapApp. * Consumers who want full control can set this to false and * wire up the canvas-settings / canvas-data / canvas-import / * canvas-outline / edit-note events themselves. */ builtInDrawers?: boolean; }; declare const _default: import("vue").DefineComponent<__VLS_Props, { addChild: (parentId: string) => void; addSibling: (nodeId: string) => void; removeNode: (nodeId: string) => void; duplicateNode: (nodeId: string) => void; setNodeText: (nodeId: string, text: string) => void; moveNode: (srcId: string, targetId: string, position: "before" | "after" | "child") => boolean; getData: () => MindMapNode; nodeHasContent: (id: string) => boolean; getSelectedIds: () => string[]; copyNodes: (ids: string[]) => void; cutNodes: (ids: string[]) => void; pasteNodes: (targetId: string | null) => void; setData: (data: MindMapNode) => void; resetView: () => void; exportData: () => string; importData: (json: string) => boolean; getMarkdown: () => string; setMarkdown: (md: string, emitMarkdownChange?: boolean) => void; setBalanced: (value: boolean) => void; isBalanced: () => boolean; balance: () => void; applyNodeStyle: (nodeId: string, style: NodeStyle) => void; getNodeStyle: (nodeId: string) => NodeStyle; applyNodeLink: (nodeId: string, url: string) => void; removeNodeLink: (nodeId: string) => void; applyNodeNote: (nodeId: string, text: string) => void; removeNodeNote: (nodeId: string) => void; applyNodeImageByUrl: (nodeId: string, url: string) => void; applyNodeImage: (nodeId: string, image: MindMapImage) => void; removeNodeImage: (nodeId: string) => void; applyNodeRichContent: (nodeId: string, content: { kind: "code" | "table"; raw: string; lang?: string; } | null) => void; undo: () => void; redo: () => void; canUndo: () => boolean; canRedo: () => boolean; applySettings: (s: Partial) => void; getSettings: () => MindMapSettings; setBranchPalette: (id: import("../types").BranchPaletteId) => void; getBranchPalette: () => import("../types").BranchPaletteId; getBranchPalettes: () => import("../types").BranchPalette[]; lineWidthForDepth: (depth: number) => number; endWidthForDepth: (depth: number) => number; addNodeMarker: (nodeId: string, marker: string) => void; removeNodeMarker: (nodeId: string, marker: string) => void; toggleNodeMarker: (nodeId: string, marker: string) => boolean; getNodeMarkers: (nodeId: string) => string[]; setNodeTags: (nodeId: string, tags: string[]) => void; getNodeTags: (nodeId: string) => string[]; exportPNG: (scale?: number) => void; exportSVG: () => void; searchNodes: (query: string) => string[]; getSearchResults: () => string[]; getSearchIndex: () => number; addRelation: (fromId: string, toId: string) => string | null; removeRelation: (relationId: string) => void; updateRelation: (relationId: string, patch: Partial>) => void; getRelations: () => MindMapRelation[]; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { select: (nodes: MindMapNode[] | null) => any; change: (data: MindMapNode) => any; "edit-note": (nodeId: string) => any; markdownChange: (markdown: string) => any; "canvas-toggle-preview": () => any; "canvas-outline": () => any; "canvas-settings": () => any; "canvas-data": () => any; "canvas-import": (mode: "markdown" | "txt" | "json") => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{ onSelect?: ((nodes: MindMapNode[] | null) => any) | undefined; onChange?: ((data: MindMapNode) => any) | undefined; "onEdit-note"?: ((nodeId: string) => any) | undefined; onMarkdownChange?: ((markdown: string) => any) | undefined; "onCanvas-toggle-preview"?: (() => any) | undefined; "onCanvas-outline"?: (() => any) | undefined; "onCanvas-settings"?: (() => any) | undefined; "onCanvas-data"?: (() => any) | undefined; "onCanvas-import"?: ((mode: "markdown" | "txt" | "json") => any) | undefined; }>, { previewMode: boolean; hideCanvasActions: boolean; builtInDrawers: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; export default _default;