import type { MapScaleUnits } from './units'; /** * Picks the largest "nice" distance that still fits inside `maxWidthPx`. * * A bar labelled 1.37 km is useless for estimating anything; the whole point is * that the reader can halve it or triple it by eye. */ export declare function niceScaleDistance(metersPerPixel: number, maxWidthPx: number, units: MapScaleUnits): { distance: number; widthPx: number; label: string; } | null;