import Graph, {Attributes} from 'graphology-types'; export type Extent = [number, number]; export type ExtentMapping = {[name: string]: Extent}; export function nodeExtent( graph: Graph, attribute: keyof NodeAttributes ): Extent; export function nodeExtent( graph: Graph, attributes: Array ): ExtentMapping; export function edgeExtent< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, attribute: keyof EdgeAttributes ): Extent; export function edgeExtent< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, attributes: Array ): ExtentMapping;