import { Point, Bounds } from './common.js'; import { Box } from './nearest-box.js'; /** * Returns the minimum distance from a point to a box. * If the point is inside the box, the distance is 0. */ declare function pointToBoxDistance(p: Point, box: Box): number; /** * Returns the minimum distance from a point to a bounds rectangle. * If the point is inside the bounds, the distance is 0. */ declare function pointToBoundsDistance(p: Point, bounds: Bounds): number; declare function midpoint(p1: Point, p2: Point): Point; declare function distSq(p1: Point, p2: Point): number; export { distSq, midpoint, pointToBoundsDistance, pointToBoxDistance };