import * as React from 'react';

type NodeItem = {
  id: string;
  name: string;
  avatar: string;
  type?: string;
};

type LinkItem = {
  linkId: string;
  source: string;
  target: string;
  relation: string;
  type?: string;
};

export declare interface RelationShipProps {
  nodes: Array<NodeItem>;
  links: Array<LinkItem>;
  hasIconAction?: boolean;
  onLineClick:(val: any) => void;
  onNodeClick:(val: any) => void;
  onRelation:(val: any) => void;
  onRemove:(val: any) => void;
  onZoom:(val: any) => void;
}

declare const RelationShip: React.FunctionComponent<RelationShipProps>;

export default RelationShip;
