import type { MapInstance, UnitMapRuntime } from "./InteractiveUnitMapRuntime"; export type UnitMapProvider = "auto" | "mapbox" | "maplibre"; export type UnitMapTheme = "light" | "dark"; export type MapStyle = string | Record; export declare const DEFAULT_UNIT_MAP_PROVIDER: UnitMapProvider; export declare const ELISE_MAPLIBRE_STYLE_URLS: Record; export declare const COMPACT_MAP_ATTRIBUTION_CONTROL: { readonly compact: true; }; export declare const MAP_CANVAS_LOAD_TIMEOUT_MS = 15000; interface StudioRuntimeConfig { mapboxAccessToken?: string; mapboxStyleUrl?: string; maplibreStyleUrl?: string; } declare global { interface Window { __ELISE_STUDIO_MAPBOX_ACCESS_TOKEN__?: string; __ELISE_STUDIO_RUNTIME_CONFIG__?: StudioRuntimeConfig; } } export interface MapCanvasContext { map: MapInstance; runtime: UnitMapRuntime; viewport: HTMLDivElement; } interface RectLike { top: number; right: number; bottom: number; left: number; width: number; height: number; } export interface MarkerPreviewLayout { placement: "above" | "below"; shiftX: number; shiftY: number; } export declare function markerPreviewLayout(mapRect: RectLike, markerRect: RectLike, previewSize: Pick, inset?: number, gap?: number): MarkerPreviewLayout; interface MapCanvasProps { provider?: UnitMapProvider; mapboxAccessToken?: string; mapboxStyleUrl?: string; maplibreTheme?: UnitMapTheme; maplibreStyleUrl?: string; center?: [number, number]; zoom?: number; minZoom?: number; maxZoom?: number; cooperativeGestures?: boolean; navigationControl?: boolean; className?: string; mapLabel?: string; loadingLabel?: string; errorLabel?: string; missingTokenLabel?: string; onReady?: (context: MapCanvasContext | null) => void; } export declare function MapCanvas({ provider, mapboxAccessToken, mapboxStyleUrl, maplibreTheme, maplibreStyleUrl, center, zoom, minZoom, maxZoom, cooperativeGestures, navigationControl, className, mapLabel, loadingLabel, errorLabel, missingTokenLabel, onReady, }: MapCanvasProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=MapCanvas.d.ts.map