import { MapMouseEvent, MapTouchEvent, MapWheelEvent } from 'maplibre-gl'; import { GeolocateSuccess, GeolocationPositionError } from './index'; export type MapClickHandler = (e: MapMouseEvent) => void; export type MapMoveHandler = (e: Event) => void; export type MapZoomHandler = (e: Event) => void; export type MapTouchHandler = (e: MapTouchEvent) => void; export type MapWheelHandler = (e: MapWheelEvent) => void; export type LayerClickHandler = (e: MapMouseEvent & { features?: GeoJSON.Feature[]; }) => void; export type LayerMouseHandler = (e: MapMouseEvent & { features?: GeoJSON.Feature[]; }) => void; export type GeolocateHandler = (e: GeolocateSuccess) => void; export type GeolocateErrorHandler = (e: GeolocationPositionError) => void;