import type { IGeoChartConfig } from "../../types/config/unified.js"; import type { IMapViewport } from "../../types/map/provider.js"; /** * Resolves the map viewport from configuration, falling back to a data-derived viewport. * * Priority order (highest wins): * 1. Advanced viewport config: `config.viewport.area` (including `"auto"`) when explicitly set * 2. AD-only legacy override: preset `config.viewport.area` (when `applyViewportNavigation === false`) * 3. `config.bounds` * 4. `config.center` + `config.zoom` (backward-compatible fallback when bounds are unavailable) * 5. `config.viewport.area` (preset area like "continent_eu") * 6. `dataViewport` (computed from layer data; used for `"auto"`) * 7. Default fallback * * @remarks * This function is intentionally pure and cycle-free so it can be reused both: * - when selecting the initial viewport for map initialization, and * - when applying viewport changes (e.g. in Analytical Designer). * * Contract for custom viewport: * - persist `bounds` whenever they are available * - prefer `bounds` over `center`/`zoom` * - keep `center`/`zoom` only as a backward-compatible fallback for older insights * * @internal */ export declare function computeViewportFromConfig(config: IGeoChartConfig | undefined, dataViewport?: Partial | null): Partial | null; /** * Creates a stable key for viewport-relevant config so hooks can detect user changes. * * @remarks * We deliberately key only on values that should trigger viewport re-application: * - `bounds`, or * - `center`/`zoom` as fallback, or * - `viewport.area` * * @internal */ export declare function getViewportConfigKey(config: IGeoChartConfig | undefined): string; //# sourceMappingURL=viewportResolution.d.ts.map