import { SpatialGeometry } from './utils'; import { Feature } from 'geojson'; /** * Get a cartogram of the given geometries and values. The cartogram is a set of buffers around the given geometries. * The radius of the buffers is proportional to the values. * * ## Example * ```ts * const geoms = [ * { type: 'Point', coordinates: [0, 0] }, * { type: 'Point', coordinates: [1, 1] }, * ]; * * const values = [1, 2]; * * const cartogram = await getCartogram(geoms, values); * * console.log(cartogram); * ``` * @param geoms The geometries to get the cartogram of * @param values The values to use for the cartogram * @param iterations The number of iterations to run the cartogram algorithm * @param numberOfPointsPerCircle The number of points per circle. This is used to control the granularity of the buffers. * @returns The cartogram as a GeoJSON FeatureCollection */ export declare function getCartogram(geoms: SpatialGeometry, values: number[], iterations?: number, numberOfPointsPerCircle?: number): Promise;