import type { IMapFacade } from "../../layers/common/mapFacade.js"; import { type IGeoLngLat } from "../../types/common/coordinates.js"; import { type IMapViewport, type IPushpinMapConfig } from "../../types/map/provider.js"; /** * Convert GeoJSON bbox array to viewport bounds. * * @param bbox - Array in the form [minLng, minLat, maxLng, maxLat] * @returns Viewport containing bounds or null if invalid * * @internal */ export declare function bboxToViewport(bbox?: readonly [number, number, number, number]): Partial | null; /** * Calculate viewport for pushpin data points. * * @param locations - Array of location coordinates * @param config - Map configuration * @returns Viewport configuration with center/zoom or bounds * * @internal */ export declare function calculateViewport(locations: IGeoLngLat[], config: IPushpinMapConfig): Partial; /** * Apply viewport to map instance using MapLibre's cameraForBounds. * * @param map - MapLibre map instance * @param viewport - Viewport configuration to apply * @param animate - Whether to animate the transition * * @internal */ export declare function applyViewport(map: IMapFacade, viewport: Partial, animate?: boolean): void; //# sourceMappingURL=viewportCalculation.d.ts.map