import { Feature } from '@peripleo/peripleo'; import { GeoJSONSource, Map, MapGeoJSONFeature, MapMouseEvent } from 'maplibre-gl'; export declare const CLICK_THRESHOLD = 3; export declare const getFeature: (evt: MapMouseEvent, withBuffer?: boolean) => MapGeoJSONFeature; /** Tests if a feature is included in the given cluster feature **/ export declare const isFeatureInCluster: (featureId: number, cluster: MapGeoJSONFeature, source: GeoJSONSource) => Promise; /** * From a list of clusters, this function finds the cluster * that contains the given feature ID. */ export declare const findClusterForFeature: (featureId: number, clusters: MapGeoJSONFeature[], source: GeoJSONSource) => Promise; /** * Lists the map features contained in the given cluster. */ export declare const listFeaturesInCluster: (map: Map, cluster: MapGeoJSONFeature) => Promise; /** * Helper: finds the source for a given feature ID. */ export declare const findSourceForFeature: (map: Map, featureId: number) => string; /** * Finds the native MapGeoJSON feature that corresponds to this Feature. * This function supports clustering - if the feature is included in a cluster, * the method will return the appropriate cluster map feature. */ export declare const findMapFeature: (map: Map, featureId?: number) => Promise; export declare const removeSourceIfExists: (map: Map, sourceId: string) => void; export declare const removeLayerIfExists: (map: Map, layerId: string) => void; //# sourceMappingURL=utils.d.ts.map