import React from 'react'; import 'butterfly-dag/dist/index.css'; import { IBottomContentRender, IBottomPanelConfig, IEdge, IEdgeConfig, IGraph, IMinimapOptions, INode, INodeConfig, IToolbarConfig, IToolbarRender } from '../../types'; import './index.less'; interface IProps { editable?: boolean; minimap?: boolean | IMinimapOptions; graphRef?: React.MutableRefObject; graphConfig?: any; toolbarRender: IToolbarRender; toolbarConfig?: IToolbarConfig; nodeConfig?: INodeConfig; edgeConfig?: IEdgeConfig; onGraphLoaded?: (graph: IGraph) => void; data?: { nodes: INode[]; edges: IEdge[]; }; onAddNode?: (item: any) => Promise; onValidateAddNode?: (item: any) => Promise; onNodeClick?: (item: any) => void; onNodeRightClick?: (item: any) => void; additionalMenuData?: Array<{ title: string; icon: string; onClick: () => void; disabled: boolean; }>; loading?: boolean; bottomPanelConfig?: IBottomPanelConfig; bottomContentRender?: IBottomContentRender; } export default function (props: IProps): JSX.Element; export {};