/** * Build a tool toolbar inside an engine-provided container (MapLibre `ctrl-group` * / OpenLayers `ol-control` / a plain Leaflet div), so buttons inherit the * engine's native control look. Placement/flow via {@link ToolbarOptions}. * * An item with `children` becomes a **submenu**: clicking its button opens a flyout * of the child buttons, positioned *into the map* based on the toolbar edge. */ import type { ToolbarItem, ToolbarOptions } from "./index.js"; /** * Set (or clear) the **active** tool highlight on a toolbar built by {@link populateToolbar}. * Consumer-driven: `id` = a `ToolbarItem` id → its bar button (a submenu/toggle descendant id marks * its parent bar trigger); `null` → clear. One active at a time; idempotent. The highlight is applied * inline (default `#dbeafe`, overridable via `ToolbarOptions.activeStyle`) so it wins uniformly on all * three engines regardless of their own button CSS. No-op if `el` isn't a known toolbar. */ export declare function setToolbarActive(el: HTMLElement, id: string | null): void; export declare function applyToolbarLayout(el: HTMLElement, opts?: ToolbarOptions): void; export declare function populateToolbar(el: HTMLElement, items: ToolbarItem[], options?: ToolbarOptions, refocus?: () => void): void; //# sourceMappingURL=toolbar.d.ts.map