import { type FilterSpecification, type GeoJSONSourceSpecification, type IMapFacade } from "./mapFacade.js"; /** * Sets visibility of a MapLibre layer. * * @remarks * Uses MapLibre's setLayoutProperty to toggle visibility without removing/adding layers. * This is much smoother than remove/add cycles. * * @param map - Map facade * @param layerId - MapLibre layer ID * @param visible - Whether the layer should be visible * * @internal */ export declare function setLayerVisibility(map: IMapFacade, layerId: string, visible: boolean): void; /** * Sets a filter on a MapLibre layer. * * @remarks * Uses MapLibre's setFilter to update which features are shown without removing/adding layers. * Pass `undefined` to clear the filter and show all features. * * @param map - Map facade * @param layerId - MapLibre layer ID * @param filter - Filter specification or undefined to clear * * @internal */ export declare function setLayerFilter(map: IMapFacade, layerId: string, filter: FilterSpecification | undefined): void; /** * Checks whether a GeoJSON source can be updated in-place using `setData`. * * @remarks * Update hooks should use this to avoid doing expensive recomputation when the map/style/source * isn't ready yet. The actual update is performed by {@link trySetGeoJsonSourceData}. * * @internal */ export declare function canSetGeoJsonSourceData(map: IMapFacade, sourceId: string): boolean; /** * Attempts to update a GeoJSON source in-place (without remove+add). * * @remarks * This is used to avoid flicker when only feature properties change (e.g. recoloring). * Returns `true` when the source existed and was updated. * * @internal */ export declare function trySetGeoJsonSourceData(map: IMapFacade, sourceId: string, data: GeoJSONSourceSpecification["data"] | undefined): boolean; export declare function removeLayerIfExists(map: IMapFacade, layerId: string): void; export declare function removeSourceIfExists(map: IMapFacade, sourceId: string): void; //# sourceMappingURL=layerOps.d.ts.map