export interface PluginDatasetState { /** The user added it from the Datasets menu. */ applied: boolean; /** Applied and not hidden with its eye toggle: draw it only when this is true. */ visible: boolean; /** What ticking it in the Datasets menu does: adds it to the map, or shows it again if hidden. */ apply: () => void; /** What unticking it in the Datasets menu does: takes it off the map. */ remove: () => void; } /** * Whether one of this plugin's `map.datasets` is on the map, with the Datasets menu's own * actions for it so a plugin's controls and the menu never disagree. `id` is the registration's. */ export declare function usePluginDataset(id: string): PluginDatasetState; //# sourceMappingURL=datasets.d.ts.map