import { Geometry, Point } from "../../internal"; /** * Calculate the centroid from point based geometries. Implementation based on * the JTS (Java Topology Suite) CentroidPoint. */ export declare class CentroidPoint { /** * Point count */ private _count; /** * Sum of point locations */ private _sum; constructor(); constructor(geometry: Geometry); /** * Add a point based dimension 0 geometry to the centroid total * @param geometry geometry */ add(geometry: Geometry): void; /** * Add a point to the centroid total * @param point point */ private addPoint; /** * Get the centroid point * @return centroid point */ getCentroid(): Point; }