import Graph, {Attributes, EdgeMapper} from 'graphology-types'; type HITSOptions< NodeAttributes extends Attributes, EdgeAttributes extends Attributes > = { nodeAuthorityAttribute?: string; nodeHubAttribute?: string; getEdgeWeight?: | keyof EdgeAttributes | EdgeMapper | null; maxIterations?: number; normalize?: boolean; tolerance?: number; }; type HITSResult = { authorities: {[node: string]: number}; hubs: {[node: string]: number}; }; interface HITS { < NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: HITSOptions ): HITSResult; assign< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: HITSOptions ): void; } declare const hits: HITS; export default hits;