import { IControl, Map as MLMap, Subscription, default as maplibregl } from 'maplibre-gl'; import { GeocodingControlBase } from './base-control'; import { MaplibreglGeocodingControlEventName, MaplibreglGeocodingControlEventNameMap } from './maplibregl-events'; import { MaplibreglGeocodingControlOptions } from './maplibregl-options'; type EventHandlingMethod = (type: Type, listener: (event: MaplibreglGeocodingControlEventNameMap[Type]) => void) => Return; interface EventOnceHandlingMethod { (type: Type, listener: (event: MaplibreglGeocodingControlEventNameMap[Type]) => void): Return; (type: Type, listener?: undefined): Promise; } export declare class MaplibreglGeocodingControl extends maplibregl.Evented implements IControl, GeocodingControlBase { #private; constructor(options?: MaplibreglGeocodingControlOptions); /** @internal Not to be called directly */ onAdd(map: MLMap): HTMLElement; /** @internal Not to be called directly */ onRemove(): void; getOptions(): MaplibreglGeocodingControlOptions; setOptions(options: MaplibreglGeocodingControlOptions): void; setQuery(value: string): void; submitQuery(value: string): void; clearMap(): void; clearList(): void; setReverseMode(reverseActive: boolean): void; focus(options?: FocusOptions): void; blur(): void; on: EventHandlingMethod; off: EventHandlingMethod; once: EventOnceHandlingMethod; } export {};