import Helper from '@ember/component/helper'; import type { Map as MapboxMap, Marker, Popup } from 'mapbox-gl'; type EventSource = MapboxMap | Popup | Marker; export interface MapboxGlOnSignature { Args: { Positional: [event: string, action: (ev: any) => void]; Named: { eventSource: EventSource; layerId?: string; }; }; Return: void; } /** * Listen to a map event * * @class MapboxGlOnHelper * * Named arguments * @argument {EventSource} eventSource * * Positional arguments in order * @argument {string} event * @argument {string} layerId (optional) * @argument {string} action */ export default class MapboxGlOn extends Helper { eventSource: EventSource | undefined; _action: ((ev: any) => void) | undefined; _prevEvent: string | undefined; _prevLayerId: string | undefined; compute([event, action]: MapboxGlOnSignature['Args']['Positional'], { eventSource, layerId }: MapboxGlOnSignature['Args']['Named']): void; willDestroy(): void; _onEvent: (ev: any) => void; private addEvent; private removeEvent; } export {}; //# sourceMappingURL=mapbox-gl-on.d.ts.map