import cytoscape from 'cytoscape'; export interface IFutureGraphNode { id: string; labels: string[]; properties?: { [key: string]: any; }; } export interface IFutureGraphEdge { startNode: string; endNode: string; id: number | string; properties?: { [key: string]: any; }; type?: string; } export interface IFutureData { nodes: IFutureGraphNode[]; edges: IFutureGraphEdge[]; } export interface IFutureOption { container: HTMLDivElement | string; defaultMainNodeId: string; defaultAvatarUrl?: string; legend?: boolean; legendContainer?: HTMLDivElement | string; } declare class FutureGraphClass { private data; private defaultMainNodeId; private options; private legends; private _graph?; private _cy?; acitveNodeId: string | number; constructor(data: IFutureData, options: IFutureOption); render(): void; handleNodes(nodes: Array, mainNodeId: string): ({ id: any; name: any; type: string; category: any; bgImgUrl: any; isMainNode: boolean; style: { width: number; height: number; 'text-events': string; 'font-size': number; color: string; 'text-halign': string; 'text-valign': string; 'text-wrap': string; 'text-max-width': string; 'text-margin-y': number; 'background-image-opacity': number; }; } | { id: any; name: any; type: string; category: any; bgImgUrl: any; style: { color: string; 'font-size': number; 'text-events': string; 'text-halign': string; 'text-valign': string; 'text-margin-y': number; 'text-wrap': string; 'text-max-width': string; 'background-image-opacity': number; width?: undefined; height?: undefined; }; isMainNode?: undefined; })[]; handleEdges(edges: Array): { startNode: any; endNode: any; name: any; id: any; style: { 'text-rotation': string; }; }[]; getCy(): cytoscape.Core | undefined; destroy(): void; } export default FutureGraphClass;