import type { IMapFacade } from "../../layers/common/mapFacade.js"; import type { IGeoChartConfig } from "../../types/config/unified.js"; import type { IMapViewport } from "../../types/map/provider.js"; /** * Applies configured viewport whenever the viewport-related config changes. * * @remarks * `useMapInitialization` intentionally captures only the initial viewport and does not re-center the map on * prop changes. This hook provides the missing behavior for Analytical Designer: when the user changes * "Default viewport", we apply the new viewport to the already-initialized map. * * We only react to viewport-relevant config changes (`bounds`, `center`/`zoom`, or `viewport.area`). * Data changes are intentionally ignored to avoid unexpected re-centering during interactions. * * Contract note: * custom viewport persists `bounds` as the preferred representation. When AD stores the * currently visible bounds after a user pan/zoom, those bounds already describe the live map. * Replaying them through `cameraForBounds()` would zoom out because the fit operation adds padding, * so matching bounds must be treated as an already-applied viewport and skipped here. * * The current `dataViewport` is still passed in so that switching to `"auto"` (or clearing the preset) * applies the latest data-derived bounds. * * @internal */ export declare function useApplyViewportOnConfigChange(map: IMapFacade | null, isMapReady: boolean, config: IGeoChartConfig | undefined, dataViewport: Partial | null): void; //# sourceMappingURL=useApplyViewportOnConfigChange.d.ts.map