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