import { type GeoJsonBbox, type GeoJsonFeatureCollection } from "@trackunit/geo-json-utils"; /** * Count features in `collection` whose geometry overlaps (or touches) `bounds`. * * Returns the total feature count when `bounds` is null (e.g. before the map * has reported its first viewport). For Point features this is equivalent to * the previous marker-only point-in-bounds check; for non-Point features it is * a cheap bbox-vs-bbox intersection — full geometry clipping is intentionally * avoided since this runs every adaptive resolution pass. * * Shared by both the marker adaptive resolution system and the shape label * resolution system so the two never disagree on what "in viewport" means. */ export declare const countFeaturesInViewport: (collection: GeoJsonFeatureCollection, bounds: Readonly | null) => number;