import Geometry from '@arcgis/core/geometry/Geometry'; /** * Provides the means to transform between WKT strings, GeoJSON and `@arcgis/core/Geometry` objects. * Registered as service `geojson.Transformer`. */ interface Transformer { /** * Parses the given GeoJSON object to @arcgis/core/Geometry. */ geojsonToGeometry(geoJSON: Record): Geometry; /** * Converts an `@arcgis/core/Geometry` into a GeoJSON object. */ geometryToGeojson(geometry: Geometry): Record; /** * Parses a WKT string into a GeoJSON object. */ wktToGeojson(wkt: string): Record; /** * Converts a GeoJSON object into a WKT string. */ geojsonToWKT(geoJSON: Record): string; /** * Parses a WKT string into an `@arcgis/core/Geometry`. */ wktToGeometry(wkt: string): Geometry; /** * Converts an `@arcgis/core/Geometry` into a WKT string. */ geometryToWKT(geometry: Geometry): string; } export type { Transformer };