import { Feature } from 'geojson'; import { SpatialGeometry } from './utils'; /** * Get the Thiessen polygons for the given geometries. If the given geometries are not points, * the centroids will be used to create the Thiessen polygons. * * Note: The Thiessen polygons are the polygons that are created by the Voronoi diagram of the points. * * ## Example * ```ts * const geoms = [ * { type: 'Feature', geometry: { type: 'Point', coordinates: [-122.4194, 37.7749] } }, * { type: 'Feature', geometry: { type: 'Point', coordinates: [-74.0060, 40.7128] } }, * { type: 'Feature', geometry: { type: 'Point', coordinates: [-87.6298, 41.8781] } }, * { type: 'Feature', geometry: { type: 'Point', coordinates: [-95.3698, 29.7604] } }, * ]; * const thiessenPolygons = await getThiessenPolygons({ geoms }); * ``` * * @param geoms - The geometries to get the Thiessen polygons * @returns The Thiessen polygons */ export declare function getThiessenPolygons({ geoms }: { geoms: SpatialGeometry; }): Promise[]>;