import { type LayerSpecification, type GeoJSONFeature, type LngLat, type Point2D, Map, type BackgroundLayerSpecification } from 'maplibre-gl'; import { Dragging } from '../type'; type PaintSpecification = LayerSpecification['paint']; interface Props { layerKey: string; layerOptions: Omit, 'id' | 'source'>; hoverable?: boolean; onClick?: (feature: GeoJSONFeature, lngLat: LngLat, point: Point2D, map: Map) => boolean | undefined; onDoubleClick?: (feature: GeoJSONFeature, lngLat: LngLat, point: Point2D, map: Map) => boolean | undefined; onMouseEnter?: (feature: GeoJSONFeature, lngLat: LngLat, point: Point2D, map: Map) => void; onMouseLeave?: (map: Map) => void; beneath?: string; onAnimationFrame?: (timestamp: number) => PaintSpecification | undefined; onDrag?: (feature: Dragging, lngLat: LngLat, point: Point2D, map: Map) => void; onDragEnd?: (feature: Dragging, lngLat: LngLat, point: Point2D, map: Map) => void; } declare function MapLayer(props: Props): null; export default MapLayer;