import { Geometry, Position } from 'geojson';
/**
 * Returns the centroid of a geometry.
 *
 * @param geometry - The geometry to get the centroid of
 * @returns The centroid coordinates [longitude, latitude] or undefined if geometry is invalid
 *
 * @example
 * ```typescript
 * const geometry = {
 *   type: 'Polygon',
 *   coordinates: [
 *     [[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]
 *   ]
 * }
 * const center = getCentroid(geometry)
 * console.log(center) // [0.5, 0.5]
 * ```
 */
export declare function getCentroid(geometry: Geometry): Position | undefined;
