import type { LngLatBoundsLike } from "../../layers/common/mapFacade.js"; import { type IGeoLngLat, type IGeoLngLatBounds } from "../../types/common/coordinates.js"; import { type IGeoPushpinChartConfig } from "../../types/config/pushpinChart.js"; /** * Viewport configuration for MapLibre * * @internal */ interface IGeoViewport { bounds?: LngLatBoundsLike; center?: IGeoLngLat; zoom?: number; } /** * Get viewport options based on data and configuration * * @param data - Array of location coordinates * @param config - Geo chart configuration * @returns Viewport configuration with bounds or center/zoom * * @internal */ export declare function getViewportOptions(data: IGeoLngLat[], config: IGeoPushpinChartConfig): IGeoViewport; /** * Represents a rectangular geographical area on a map. * * @param lnglats - Array of coordinates * @returns Bounds containing all coordinates or undefined if empty * * @example * ```typescript * const corner1 = { lat: 40.712, lng: -74.227 }; * const corner2 = { lat: 40.774, lng: -74.125 }; * const bounds = getLngLatBounds([corner1, corner2]); * * if (bounds) { * map.fitBounds([bounds.northEast, bounds.southWest], { padding: 60 }); * } * ``` * * @internal */ export declare function getLngLatBounds(lnglats: IGeoLngLat[]): IGeoLngLatBounds | undefined; export {}; //# sourceMappingURL=viewportPresets.d.ts.map