import Graph, {Attributes, GraphConstructor} from 'graphology-types'; import {GexfParserOptions, GexfWriterOptions} from '../common/types'; export function parse< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, GraphAttributes extends Attributes = Attributes >( Graph: GraphConstructor, source: string | Document, options?: GexfParserOptions ): Graph; export function write< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, FormattedNodeAttributes extends Attributes = Attributes, FormattedEdgeAttributes extends Attributes = Attributes >( graph: Graph, options?: GexfWriterOptions< NodeAttributes, EdgeAttributes, FormattedNodeAttributes, FormattedEdgeAttributes > ): string;