/** * Subscription-based store for the map loading indicator. * Compatible with `useSyncExternalStore(subscribe, getSnapshot)`. * * `useLayers` pushes its aggregated `loading` boolean into this store. * `createMapComponent` subscribes and renders a spinner overlay when active. */ export type MapLoadingIndicatorStore = Readonly<{ setLoading: (loading: boolean) => void; subscribe: (callback: () => void) => () => void; getSnapshot: () => boolean; }>; /** * Creates a `MapLoadingIndicatorStore` instance. * * Internally tracks a single boolean. `setLoading` only notifies subscribers * when the value actually changes, preventing unnecessary re-renders. * * @internal */ export declare const createMapLoadingIndicatorStore: () => MapLoadingIndicatorStore;