/** * Hides cartographic captions that overlap. * * @description * At low zoom, permanent captions pile on top of each other and the map becomes * unreadable — every label unreadable rather than a few missing. The first * caption in DOM order wins each conflict and the rest are hidden, which is the * standard cartographic trade: fewer labels, all legible. * * Hidden captions are made `visibility: hidden` rather than unmounted, so the * decision reverses instantly when the user zooms back in, and nothing about * the accessibility tree changes (captions are `aria-hidden` regardless — the * marker's accessible name already carries the text). */ export declare function useCaptionCollision(container: HTMLElement | null, enabled: boolean, dependencies: unknown[], /** * The map instance. Panning and zooming move every caption without changing * the container's size, so a ResizeObserver alone never re-runs — which left * labels overlapping the moment the user touched the map. */ map?: google.maps.Map | null): () => void;