import { Coords, Boundaries, PolygonDocument, PinOptions } from "../types/index.js"; export declare const EXTENT: Boundaries; export declare function getExtent(coords?: Coords[]): Boundaries | undefined; export declare function getBoundaryExtent(extent: Boundaries, boundaries: Boundaries): { top: number; right: number; bottom: number; left: number; }; export declare function getCoords({ top, right, bottom, left, }: Boundaries): [Coords, Coords]; export declare function getPolygon({ top, right, bottom, left }: Boundaries): Coords[]; export declare function compareExtents(first: Boundaries, ...others: (Boundaries | unknown)[]): Boundaries; export declare function getExtentCoords(extent: Boundaries): [Coords, Coords, Coords, Coords]; export declare function extentArea(extent: Boundaries): number; export declare function getReverseExtent(extent: Boundaries): Boundaries; export declare function center(extent: Boundaries): Coords; export declare function distance([x1, y1]: Coords, [x2, y2]: Coords): number; export declare function angle([x1, y1]: Coords, [x2, y2]: Coords): number; export declare function coordsArea([x1, y1]: Coords, [x2, y2]: Coords): number; export declare function includesCoords(container: Boundaries, shape: Boundaries): boolean; export declare function includesPoint(container: Boundaries, point: Coords): boolean; export declare function getPinExtent(pin: PinOptions): Boundaries; export declare function calcAreaCentroid(coords: Coords[]): { centroid: Coords; area: number; maxDecimals: number; }; export declare function polygonProps(coords: Coords[]): PolygonDocument; /** * Performs the even-odd-rule Algorithm (a raycasting algorithm) to find out whether a point is in a given polygon. * This runs in O(n) where n is the number of edges of the polygon. * * @param {Coords} polygon an array representation of the polygon where polygon[i][0] is the x Value of the i-th point and polygon[i][1] is the y Value. * @param {Coords} point an array representation of the point where point[0] is its x Value and point[1] is its y Value * @return {boolean} whether the point is in the polygon (not on the edge, just turn < into <= and > into >= for that) */ export declare function pointInPolygon(polygon: Coords[], point: Coords): boolean;