import type { FeatureOf, LineString, Polygon } from "@deck.gl-community/editable-layers";
import type { Position } from "geojson";
export declare function length(geojson: FeatureOf<LineString>): number;
/**
 * Takes one or more features and returns their area in square meters.
 */
export declare function area(geojson: FeatureOf<Polygon>): number;
/**
 * Calculates the squared distance from a point to a line segment
 * @param v The start position of the segment
 * @param w The end position of the segment
 * @param p The point to calculate the distance to
 * @returns The squared distance from the point to the segment
 */
export declare function distToSegmentSquared(v: Position, w: Position, p: Position): number;
/**
 * Checks if a point has moved beyond the end of a line segment
 * @param point The point to check
 * @param line The line segment, defined by start and end positions
 * @returns True if the point has moved beyond the end of the line segment, false otherwise
 */
export declare function isPointAwayFromLineEnd(point: Position, line: [lineStart: Position, lineEnd: Position]): boolean;
