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