import type { GeofenceEvent, MapViewport, Position, SelectionContext, TimeState } from '../core/types.js'; import type { MapRuntime, RuntimeState } from '../runtime/runtime.js'; import type { MapStore } from './store.js'; export interface MapContextValue { runtime: MapRuntime | null; store: MapStore; } export declare const MapContext: import("react").Context; /** The runtime behind the nearest , or null before it is created. Use it to call engine APIs. */ export declare function useMapRuntime(): MapRuntime | null; export declare function useSelection(): SelectionContext | undefined; export declare function useViewport(): MapViewport | undefined; export declare function useMapState(): RuntimeState; /** What time the map shows: live, or a replay time and range. */ export declare function useMapTime(): TimeState; export interface GeofenceView { /** Newest first. Live: what happened this session. Replay: what happened in the range up to the replay time. */ events: GeofenceEvent[]; /** Object ids inside each geofence now (live) or at the replay time. */ occupancy: Record; } /** * Geofence events and occupancy, kept current as objects move, geofences change, or time changes. Inside * it uses that map; panels outside the map pass the runtime (from `onReady`) instead. */ export declare function useGeofences(options?: { limit?: number; runtime?: MapRuntime | null; }): GeofenceView; /** * Where a position is on screen (pixels from the map's top-left), kept current while the camera moves — for * popups and other overlays pinned to an object. Null when there is no position or no map yet. */ export declare function useProjected(position: Position | null | undefined, options?: { runtime?: MapRuntime | null; }): { x: number; y: number; } | null;