import type { BoundingBox, Geometry, Position, SpatialRelation } from '../core/types.js'; /** * True when every part of `a` lies inside `b` (OGC "within"). Each part of `a` must lie within one part of `b`, which * is exact for valid multi-geometries (their parts do not overlap). Points in a circle use the true distance. */ export declare function within(a: Geometry, b: Geometry): boolean; /** True when `a` contains `b`. Defined as `within(b, a)` so both relations share one implementation. */ export declare function contains(a: Geometry, b: Geometry): boolean; export declare function intersects(a: Geometry, b: Geometry): boolean; /** Great-circle distance in metres. */ export declare function distanceMeters(a: Position, b: Position): number; /** Shortest distance in metres from a position to a geometry. Zero when inside an area or on a line. */ export declare function distanceToGeometryMeters(position: Position, geometry: Geometry): number; export declare function intersectsBounds(geometry: Geometry, bounds: BoundingBox): boolean; /** * Where one label for a geometry goes (one per object, never one per map tile): a point, the middle point of a * line, a circle's centre, or a point guaranteed inside an area — the largest part of a multipolygon. */ export declare function labelPoint(geometry: Geometry, placement?: 'center' | 'top'): Position; /** Does `geometry` satisfy the relation? Candidate filtering by bounds happens first, exact geometry second. */ export declare function matchesRelation(geometry: Geometry, relation: SpatialRelation): boolean;