import type { IEdge, INode } from "../index"; export interface IRelNetNode extends INode { level: 0 | 1 | 2; paperType: '当前文献' | '关联学科' | '参考文献' | '被引论文' | '相似论文'; } export interface IRelNetEdge extends IEdge { } export interface IData { nodes: IRelNetNode[]; edges: IRelNetEdge[]; } export interface IOption { container: HTMLDivElement | string; defaultMainNodeId: string; defaultAvatarUrl?: string; } declare class RelationNetClass { private data; private defaultMainNodeId; private options; constructor(data: IData, options: IOption); render(): void; handleNodes(nodes: Array, mainNodeId: string): ({ id: any; name: any; type: string; selected: { type: string; style: { 'outline-color': string; 'outline-width': number; 'outline-opacity': number; }; }; style: { width: any; height: any; 'text-events': string; 'background-color': string; color?: undefined; 'text-halign'?: undefined; 'text-valign'?: undefined; 'text-margin-y'?: undefined; }; } | { id: any; name: any; type: string; style: { width: any; height: any; 'background-color': any; color: string; 'text-events': string; 'text-halign': string; 'text-valign': string; 'text-margin-y': number; }; selected: { type: string; style?: undefined; }; })[]; handleEdges(edges: Array): { startNode: any; endNode: any; name: any; id: any; style: { 'line-color': string; 'curve-style': string; }; }[]; } export default RelationNetClass;