import Graph, {Attributes} from 'graphology-types'; import {MinimalEdgeMapper} from 'graphology-utils/getters'; type BetweennessCentralityMapping = {[node: string]: number}; type BetweennessCentralityOptions = { nodeCentralityAttribute?: string; getEdgeWeight?: | keyof EdgeAttributes | MinimalEdgeMapper | null; normalized?: boolean; }; interface IBetweennessCentrality { < NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: BetweennessCentralityOptions ): BetweennessCentralityMapping; assign< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: BetweennessCentralityOptions ): void; } declare const betweennessCentrality: IBetweennessCentrality; export default betweennessCentrality;