/// /// import * as MapboxGl from 'mapbox-gl'; export declare type MapEvent = (map: MapboxGl.Map, evt: React.SyntheticEvent) => void; export interface Events { onStyleLoad?: MapEvent; onResize?: MapEvent; onDblClick?: MapEvent; onClick?: MapEvent; onMouseMove?: MapEvent; onMouseOut?: MapEvent; onMoveStart?: MapEvent; onMove?: MapEvent; onMoveEnd?: MapEvent; onMouseDown?: MapEvent; onMouseUp?: MapEvent; onDragStart?: MapEvent; onDragEnd?: MapEvent; onDrag?: MapEvent; onZoomStart?: MapEvent; onZoom?: MapEvent; onZoomEnd?: MapEvent; onPitch?: MapEvent; onPitchStart?: MapEvent; onPitchEnd?: MapEvent; onWebGlContextLost?: MapEvent; onWebGlContextRestored?: MapEvent; onRemove?: MapEvent; onContextMenu?: MapEvent; onRender?: MapEvent; onError?: MapEvent; onSourceData?: MapEvent; onDataLoading?: MapEvent; onStyleDataLoading?: MapEvent; onTouchCancel?: MapEvent; onData?: MapEvent; onSourceDataLoading?: MapEvent; onTouchMove?: MapEvent; onTouchEnd?: MapEvent; onTouchStart?: MapEvent; onStyleData?: MapEvent; onBoxZoomStart?: MapEvent; onBoxZoomEnd?: MapEvent; onBoxZoomCancel?: MapEvent; onRotateStart?: MapEvent; onRotate?: MapEvent; onRotateEnd?: MapEvent; } export declare type EventMapping = { [T in keyof Events]: string; }; export declare const events: EventMapping; export declare type Listeners = { [T in keyof Events]: (evt: React.SyntheticEvent) => void; }; export declare const listenEvents: (partialEvents: EventMapping, props: Partial, map: MapboxGl.Map) => Listeners; export declare const updateEvents: (listeners: Listeners, nextProps: Partial, map: MapboxGl.Map) => { onStyleLoad?: (evt: React.SyntheticEvent) => void; onResize?: (evt: React.SyntheticEvent) => void; onDblClick?: (evt: React.SyntheticEvent) => void; onClick?: (evt: React.SyntheticEvent) => void; onMouseMove?: (evt: React.SyntheticEvent) => void; onMouseOut?: (evt: React.SyntheticEvent) => void; onMoveStart?: (evt: React.SyntheticEvent) => void; onMove?: (evt: React.SyntheticEvent) => void; onMoveEnd?: (evt: React.SyntheticEvent) => void; onMouseDown?: (evt: React.SyntheticEvent) => void; onMouseUp?: (evt: React.SyntheticEvent) => void; onDragStart?: (evt: React.SyntheticEvent) => void; onDragEnd?: (evt: React.SyntheticEvent) => void; onDrag?: (evt: React.SyntheticEvent) => void; onZoomStart?: (evt: React.SyntheticEvent) => void; onZoom?: (evt: React.SyntheticEvent) => void; onZoomEnd?: (evt: React.SyntheticEvent) => void; onPitch?: (evt: React.SyntheticEvent) => void; onPitchStart?: (evt: React.SyntheticEvent) => void; onPitchEnd?: (evt: React.SyntheticEvent) => void; onWebGlContextLost?: (evt: React.SyntheticEvent) => void; onWebGlContextRestored?: (evt: React.SyntheticEvent) => void; onRemove?: (evt: React.SyntheticEvent) => void; onContextMenu?: (evt: React.SyntheticEvent) => void; onRender?: (evt: React.SyntheticEvent) => void; onError?: (evt: React.SyntheticEvent) => void; onSourceData?: (evt: React.SyntheticEvent) => void; onDataLoading?: (evt: React.SyntheticEvent) => void; onStyleDataLoading?: (evt: React.SyntheticEvent) => void; onTouchCancel?: (evt: React.SyntheticEvent) => void; onData?: (evt: React.SyntheticEvent) => void; onSourceDataLoading?: (evt: React.SyntheticEvent) => void; onTouchMove?: (evt: React.SyntheticEvent) => void; onTouchEnd?: (evt: React.SyntheticEvent) => void; onTouchStart?: (evt: React.SyntheticEvent) => void; onStyleData?: (evt: React.SyntheticEvent) => void; onBoxZoomStart?: (evt: React.SyntheticEvent) => void; onBoxZoomEnd?: (evt: React.SyntheticEvent) => void; onBoxZoomCancel?: (evt: React.SyntheticEvent) => void; onRotateStart?: (evt: React.SyntheticEvent) => void; onRotate?: (evt: React.SyntheticEvent) => void; onRotateEnd?: (evt: React.SyntheticEvent) => void; };