import * as React from 'react'; import './index.less'; import 'butterfly-dag/dist/index.css'; import { action } from './component/action-menu'; interface ComProps { width?: number | string; height?: number | string; tables: Array; relations: Array; className?: string; actionMenu: action[]; config?: { titleRender: (node: ITable) => void; showActionIcon?: boolean; enableHoverChain: boolean; enableHoverAnimate: boolean; minimap?: { enable: boolean; config?: { nodeColor: any; }; }; gridMode: { isAdsorb: boolean; theme: { shapeType: string; gap: number; lineWidth: 1; lineColor: string; circleRadiu: number; circleColor: string; }; }; butterfly: any; rankdir: string; }; emptyContent?: string | JSX.Element; emptyWidth?: number | string; centerId?: string; onChange(data: any): void; onLoaded(canvas: any): void; } interface ITable { id: string; name: string; isCollapse: boolean; fields: Array; } interface IRelation { id?: string; srcTableId: string; tgtTableId: string; srcTableColName: string; tgtTableColName: string; } interface columns { key: string; width?: number; primaryKey: boolean; render?(text: any, record: any, index: number): void; } export default class LineageDag extends React.Component { props: any; protected _isFirstFocus: any; protected canvas: any; protected canvasData: any; protected originEdges: any; constructor(props: ComProps); componentDidMount(): void; shouldComponentUpdate(newProps: ComProps, newState: any): any; render(): React.JSX.Element; _genClassName(): string; } export {};