import type { BoundingBox, MapViewport, Padding, Size, ValidationResult } from '../core/types.js'; /** Web Mercator cannot show the poles; MapLibre uses the same limit. */ export declare const MAX_MERCATOR_LATITUDE = 85.051129; export declare const MIN_ZOOM = 0; export declare const MAX_ZOOM = 24; export declare const MAX_PITCH = 85; /** MapLibre's tile size, so headless bounds match what the renderer shows. */ export declare const TILE_SIZE = 512; export declare function validateViewport(value: unknown): ValidationResult; /** Clamps latitude to the Mercator range and bearing to [0, 360). Call after validateViewport. */ export declare function normalizeViewport(v: MapViewport): MapViewport; /** * Visible bounds of a viewport on a container of `size` pixels. * Accounts for bearing; ignores pitch (pitched views report their real bounds through the renderer). * MVP does not wrap the antimeridian: longitudes are clamped to [-180, 180]. */ export declare function computeBounds(viewport: MapViewport, size: Size, tileSize?: number): BoundingBox; /** The zoom at which `bounds` fits in `size` pixels, with `padding` pixels on each side. Bearing 0. */ export declare function zoomToFit(bounds: BoundingBox, size: Size, padding?: Padding, tileSize?: number): MapViewport;