import Graph, {Attributes} from 'graphology-types'; import {MinimalEdgeMapper} from 'graphology-utils/getters'; type EigenvectorCentralityOptions< EdgeAttributes extends Attributes = Attributes > = { nodeCentralityAttribute?: string; getEdgeWeight?: | keyof EdgeAttributes | MinimalEdgeMapper | null; maxIterations?: number; tolerance?: number; }; type EigenvectorCentralityMapping = {[node: string]: number}; interface EigenvectorCentrality { < NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: EigenvectorCentralityOptions ): EigenvectorCentralityMapping; assign< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: EigenvectorCentralityOptions ): void; } declare const eigenvectorCentrality: EigenvectorCentrality; export default eigenvectorCentrality;