import Graph, {Attributes, EdgeMapper} from 'graphology-types'; export type DisparityOptions< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes > = { edgeDisparityAttribute?: string; getEdgeWeight?: | keyof EdgeAttributes | EdgeMapper; }; export type DisparityMapping = {[edge: string]: number}; interface IDisparity { < NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: DisparityOptions ): DisparityMapping; assign< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: DisparityOptions ): void; } declare const disparity: IDisparity; export default disparity;