import { h, Component } from 'preact'; import { BaseNodeModel, GraphModel } from 'flow-lcl/core'; interface IProps { index: number; x: number; y: number; nodeModel: BaseNodeModel; graphModel: GraphModel; style?: CSSStyleDeclaration; hoverStyle?: CSSStyleDeclaration; edgeStyle?: CSSStyleDeclaration; } declare class Control extends Component { dragHandler: Function; index: number; nodeModel: BaseNodeModel; graphModel: GraphModel; constructor(props: any); onDragStart: () => void; getNodeEdges(nodeId: any): { sourceEdges: any[]; targetEdges: any[]; }; onDraging: ({ deltaX, deltaY }: { deltaX: any; deltaY: any; }) => void; onDragEnd: () => void; checkEnd: () => void; render(): h.JSX.Element; } export default Control;