import { UiElement } from '../shared/element.js'; import type { HeaderMenuButtonToggleDetail } from './shell-shared.js'; /** * Carbon `HeaderMenuButton`: the hamburger that opens / closes a `` below the `lg` * breakpoint (hidden above it unless `collapsible`). As Carbon web components, the side nav in the * same document (or shadow root) follows it by itself and keeps `active` in step; call * `preventDefault()` on `ui-toggle` to handle it yourself. * * @fires ui-toggle - cancelable; detail: { active } the state the user asked for * @csspart base - The button */ export declare class UiHeaderMenuButton extends UiElement { static readonly shadowRootOptions: ShadowRootInit; static readonly styles: import("lit").CSSResult; active: boolean; /** Keep the button at every width (a collapsible, non-fixed side nav). */ collapsible: boolean; openLabel: string; closeLabel: string; private readonly localize; private toggle; render(): import("lit-html").TemplateResult<1>; } export interface UiHeaderMenuButtonEventMap extends HTMLElementEventMap { 'ui-toggle': CustomEvent; } /** Typed listeners for UiHeaderMenuButton's events (declaration merging with the class). */ export interface UiHeaderMenuButton { addEventListener(type: K, listener: (this: UiHeaderMenuButton, event: UiHeaderMenuButtonEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: UiHeaderMenuButton, event: UiHeaderMenuButtonEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare global { interface HTMLElementTagNameMap { 'ui-header-menu-button': UiHeaderMenuButton; } }