import { default as cytoscape } from 'cytoscape'; import { default as React } from 'react'; export interface IpldGraphCytoscapeProps extends React.HTMLAttributes { links: any[]; path: string; onNodeClick?(arg0: any): void; } interface IpldGraphCytoscapeState { truncatedLinks: any[]; } export default class IpldGraphCytoscape extends React.Component { readonly graphRef: React.RefObject; cy: cytoscape.Core | null; constructor(props: IpldGraphCytoscapeProps); static getDerivedStateFromProps(props: IpldGraphCytoscapeProps, state: IpldGraphCytoscapeState): IpldGraphCytoscapeState; componentDidMount(): void; componentDidUpdate(): void; render(): React.ReactNode; renderTree({ path, links, container }: { path: string; links: any[]; container: HTMLElement | null | undefined; }): cytoscape.Core; ipfsLinksToCy(links: any[]): any[]; makeNode({ target, path }: any, index: string | number): any; makeLink({ source, target, path }: any, index: number): any; } export {};