import { UseBoundStore, StoreApi } from 'zustand'; export interface LayerSpec { name: string; render: () => React.ReactNode; } export interface LayersStoreState { layers: LayerSpec[]; } export declare const useLayersStore: UseBoundStore>; export declare function createLayer(spec: LayerSpec): void; export declare function removeLayer(name: string): void; export declare function popLayer(): void; /** * Subscribe to the LayersStore, returning the LayerSpec for the given layer. * This is good for listening to when a Layer gets removed from the store to * perform some other action (like toggling an open/close button). * * If this hook returns a value, the layer is visible. Otherwise, if the layer * is not visible, it returns undefined. */ export declare function useLayerSubscription(name: string): LayerSpec | undefined; //# sourceMappingURL=LayersStore.d.ts.map