import type { LayoutNode, LayoutDirection } from "../types"; import type { ThemeColors } from "../utils/theme"; import type { MindMapPlugin } from "../plugins/types"; export interface LatexRenderer { getKatexSync: () => unknown; onKatexReady: (cb: () => void) => void; renderLatexToHtml: (tex: string, displayMode: boolean) => string | null; loadKatexStyle: () => void; } export interface MindMapNodeProps { node: LayoutNode; offset?: { x: number; y: number; }; isEditing: boolean; isPendingEdit: boolean; isSelected: boolean; isNew: boolean; isGhost?: boolean; animClass: string; editText: string; theme: ThemeColors; direction: LayoutDirection; readonly?: boolean; plugins?: MindMapPlugin[]; onMouseDown: (e: React.MouseEvent, nodeId: string) => void; onClick: (e: React.MouseEvent, nodeId: string) => void; onDoubleClick: (e: React.MouseEvent, nodeId: string, text: string) => void; onContextMenu?: (e: React.MouseEvent, nodeId: string) => void; onEditChange: (text: string) => void; onEditCommit: () => void; onEditCancel: () => void; onAddChild: (e: React.MouseEvent, parentId: string, side?: "left" | "right") => void; onRemarkHover?: (nodeId: string | null) => void; onFoldToggle?: (nodeId: string) => void; expandDelay?: number; isSearchMatch?: boolean; isActiveMatch?: boolean; isFilterDimmed?: boolean; latexRenderer?: LatexRenderer; } export declare function MindMapNode({ node, offset, isEditing, isPendingEdit, isSelected, isNew, isGhost, animClass, editText, theme, direction, readonly: readonlyProp, plugins, onMouseDown, onClick, onDoubleClick, onContextMenu, onEditChange, onEditCommit, onEditCancel, onAddChild, onRemarkHover, onFoldToggle, expandDelay, isSearchMatch, isActiveMatch, isFilterDimmed, latexRenderer, }: MindMapNodeProps): import("react/jsx-runtime").JSX.Element;