import type { LatLng } from 'leaflet'; export type BaseLine = [LatLng, LatLng]; /** @import {LatLng} from 'leaflet' */ /** @typedef {[LatLng, LatLng]} BaseLine */ export declare const QuickHull: { /** * An approximate distance measure of a point from the baseline. * @param {LatLng} cpt * @param {BaseLine} bl */ getDistant(cpt: LatLng, bl: BaseLine): number; /** * The point farthest from the baseline, and all points on its outer side, which stay in consideration for the hull. * @param {BaseLine} baseLine * @param {LatLng[]} latLngs */ findMostDistantPointFromBaseLine(baseLine: BaseLine, latLngs: LatLng[]): { maxPoint: LatLng | null; newPoints: LatLng[]; }; /** * Given a baseline, compute the convex hull of latLngs as an array of latLngs. * @param {BaseLine} baseLine * @param {LatLng[]} latLngs * @returns {LatLng[]} */ buildConvexHull(baseLine: BaseLine, latLngs: LatLng[]): LatLng[]; /** * Given an array of latlngs, compute a convex hull as an array of latlngs. * @param {LatLng[]} latLngs * @returns {LatLng[]} */ getConvexHull(latLngs: LatLng[]): LatLng[]; };