import React from 'react'; import { IEdge, IFutureGraphEdge, IFutureGraphNode, IFutureOption, INode, IOption } from '../index'; import './style/index.scss'; export type ReactGraphProps = { type: 'future' | 'base'; data: { nodes: IFutureGraphNode[] | INode[]; edges: IFutureGraphEdge[] | IEdge[]; }; futureOption?: Omit; baseOption?: Omit; graphInstanceRef?: React.RefObject; isShowPagination?: boolean; isShowToolbar?: boolean; total?: number; onPageChange?: (page: number, pageSize: number) => void; onFocus?: (nodeId: string | number) => void; loading?: boolean; defaultPageSize?: 10 | 20 | 50 | 100; }; declare const ReactGraph: ({ type, data, futureOption, baseOption, graphInstanceRef, isShowPagination, isShowToolbar, total, loading, onPageChange, onFocus, defaultPageSize, }: ReactGraphProps) => React.JSX.Element; export default ReactGraph;