export interface EventsTool {
on<T extends MapEvent>(event: T, cb: (value: MapEventReturnTypesMap[T]) => void): Unsubscriber;
once<T extends MapEvent>(event: T, cb: (value: MapEventReturnTypesMap[T]) => void): Unsubscriber;
watch<T extends MapProperty>(
cb: (value: MapPropertyTypes[T]) => void,
* @deprecated use hitGraphicMapService instead
* @param graphicMapService
listenGraphicMapServiceClick(
graphicMapService: ApiGraphicsMapService,
cb: (features: ApiFeature[]) => void,
hitGraphicMapService(props: {
event: 'hover' | 'click';
mapService: ApiGraphicsMapService;
cb: (props: { point: ApiPoint; features: ApiFeature[] }) => void;
listenToAnyGraphicMapServiceClick(cb: (results: Map<ApiGraphicsMapService, ApiFeature[]>) => void): Unsubscriber;