import * as d3 from 'd3'; export default class ForceGraph { elementId: string; el: {}; constructor(params?: { elementId: string; }); build({ nodes, // an iterable of node objects (typically [{id}, …]) links, }: { nodes: any; links: any; }, { nodeId, // given d in nodes, returns a unique identifier (string) nodeGroup, // given d in nodes, returns an (ordinal) value for color nodeGroups, // an array of ordinal values representing the node groups nodeTitle, // given d in nodes, a title string nodeFill, // node stroke fill (if not using a group color encoding) nodeStroke, // node stroke color nodeStrokeWidth, // node stroke width, in pixels nodeStrokeOpacity, // node stroke opacity nodeRadius, // node radius, in pixels nodeStrength, linkSource, // given d in links, returns a node identifier string linkTarget, // given d in links, returns a node identifier string linkStroke, // link stroke color linkStrokeOpacity, // link stroke opacity linkStrokeWidth, // given d in links, returns a stroke width in pixels linkStrokeLinecap, // link stroke linecap linkStrength, colors, // an array of color strings, for the node groups width, // outer width, in pixels height, // outer height, in pixels invalidation, }?: { nodeId?: (d: { id: any; }) => any; nodeGroup: any; nodeGroups: any; nodeTitle: any; nodeFill?: string; nodeStroke?: string; nodeStrokeWidth?: number; nodeStrokeOpacity?: number; nodeRadius?: number; nodeStrength: any; linkSource?: ({ source }: { source: any; }) => any; linkTarget?: ({ target }: { target: any; }) => any; linkStroke?: string; linkStrokeOpacity?: number; linkStrokeWidth?: number; linkStrokeLinecap?: string; linkStrength: any; colors?: readonly string[]; width?: number; height?: number; invalidation: any; }): SVGSVGElement & { scales: { color: d3.ScaleOrdinal<{ toString(): string; }, string, never>; }; }; loadData(data: { nodes: any[]; links: any[]; }, options?: {}): void; }