import type { IControl, Map } from 'maplibre-gl'; /** * A line of text over the map saying how to search it: hold shift and drag a box. * * Saying so is all it does. The gesture itself is MapLibre's own BoxZoomHandler, and the component * that put this on the map is the one holding the callback behind it - see . A control * rather than something rendered into a shadow root, because MapLibre's control stack is what sets a * corner aside and keeps the inset from the edge. * * The words are given rather than baked in, because GeoBlacklight already runs the strings for the * Leaflet control this one replaces through Rails I18n, and a translated reader shouldn't lose them * in the swap. * * It gets out of the way while a box is being drawn: it is the only thing of ours sitting over the * drawing surface, and the gesture it describes is the one thing that draws across it. */ export default class GeosearchControl implements IControl { private text; private container; constructor(text: string); onAdd(map: Map): HTMLElement; onRemove(map: Map): void; setText(text: string): void; private hide; private show; }