import Graph, {Attributes} from 'graphology-types'; type MergeEdgeFunction = ( currentEdgeAttributes: EdgeAttributes, conflictingEdgeAttributes: EdgeAttributes ) => EdgeAttributes; type ToDirectedOptions = { mergeEdge: MergeEdgeFunction; }; export default function toUndirected< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, GraphAttributes extends Attributes = Attributes >( graph: Graph, mergeEdge?: MergeEdgeFunction ): Graph; export default function toUndirected< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, GraphAttributes extends Attributes = Attributes >( graph: Graph, options?: ToDirectedOptions ): Graph;