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