import { type ReactElement, type RefObject } from "react"; import { type ContentRect } from "react-measure"; import type { IAnalyticalBackend } from "@gooddata/sdk-backend-spi"; import { type GoodDataSdkError, type IHeaderPredicate, type OnFiredDrillEvent } from "@gooddata/sdk-ui"; import { type BoundsChangedCallback, type CenterPositionChangedCallback, type ViewportInteractionEndCallback, type ZoomChangedCallback } from "../types/common/callbacks.js"; import { type IGeoChartConfig } from "../types/config/unified.js"; import { type IMapViewport } from "../types/map/provider.js"; import { type ILayerExecutionRecord } from "../types/props/geoChart/internal.js"; export type MapControllerProps = { mapContainerRef: RefObject; legendPanelRef?: RefObject; chartContainerRect: ContentRect | null; initialViewport: Partial | null; dataViewport: Partial | null; layerExecutions: ILayerExecutionRecord[]; drillablePredicates: IHeaderPredicate[]; onCenterPositionChanged?: CenterPositionChangedCallback; onZoomChanged?: ZoomChangedCallback; onBoundsChanged?: BoundsChangedCallback; onViewportInteractionEnd?: ViewportInteractionEndCallback; onDrill?: OnFiredDrillEvent; afterRender?: () => void; config: IGeoChartConfig | undefined; backend?: IAnalyticalBackend; locale?: string; mapInstructionsId?: string; mapCanvasTitle?: string; onMapError?: (error: GoodDataSdkError | null) => void; }; /** * Centralized map controller that wires up map initialization, resize handling, * interaction callbacks, layer synchronization, and after-render signalling. */ export declare function MapController({ mapContainerRef, legendPanelRef, chartContainerRect, initialViewport, dataViewport, layerExecutions, drillablePredicates, onCenterPositionChanged, onZoomChanged, onBoundsChanged, onViewportInteractionEnd, onDrill, afterRender, config, backend, locale, mapInstructionsId, mapCanvasTitle, onMapError, }: MapControllerProps): ReactElement | null; //# sourceMappingURL=MapController.d.ts.map