/** * NodeToolbar 组件 * * 节点工具栏 - 用于添加新节点 * * 功能: * - 显示可用的节点类型 * - 点击添加对应类型的节点 * - 支持自定义节点类型 */ import React from 'react'; export interface NodeTypeDefinition { /** 节点类型标识 */ type: string; /** 节点类型名称 */ label: string; /** 节点图标(emoji 或文本) */ icon?: string; /** 节点颜色 */ color?: string; /** 节点描述 */ description?: string; } export interface NodeToolbarProps { /** 可用的节点类型列表 */ nodeTypes: NodeTypeDefinition[]; /** 添加节点的回调 */ onAddNode: (type: string) => void; /** 工具栏位置 */ position?: 'top' | 'left' | 'right'; /** 是否显示 */ visible?: boolean; } /** * 节点工具栏组件 */ export declare const NodeToolbar: React.FC; //# sourceMappingURL=NodeToolbar.d.ts.map