import Control, { ControlOptionsType } from './Control'; import type { Map } from './../map/Map'; /** * @classdesc * A toolbar control of the map. * @category control * @extends control.Control * @memberOf control * @example * var toolbar = new Toolbar({ * position : 'top-right', * items: [ * { * item: 'item1', * click: function () { * alert('item1 clicked'); * } * }, * { * item: 'item2', * click: function () { * alert('item2 clicked'); * } * } * ] * }).addTo(map); */ declare class Toolbar extends Control { /** * method to build DOM of the control * @param {Map} map map to build on * @return {HTMLDOMElement} */ buildOn(map: Map): HTMLElement; } export default Toolbar; export type ToolBarItem = { item: string; click: () => void; }; export type ToolbarOptionsTypeSpec = { height?: number; vertical?: boolean; reverseMenu?: boolean; items: Array; }; export type ToolbarOptionsType = ControlOptionsType & ToolbarOptionsTypeSpec; //# sourceMappingURL=Control.Toolbar.d.ts.map