import { UiElement } from '../shared/element.js'; import type { ExpandedDetail } from '../shared/events.js'; /** * Carbon `HeaderPanel`: a 256px panel that slides in under the header on the end side (app * switcher, notifications). Escape, focus leaving and a click outside it (not on the action that * opens it) close it (`ui-toggle`; Carbon `HeaderPanel`); set `expanded`. * * @slot - Panel content (e.g. ``) * @fires ui-toggle - detail: { expanded } * @csspart base - The panel */ export declare class UiHeaderPanel extends UiElement { static readonly styles: import("lit").CSSResult; expanded: boolean; label: string; connectedCallback(): void; disconnectedCallback(): void; /** A click outside closes it — not one on its own global action, which toggles it (Carbon HeaderPanel's window click). */ private stopOutside?; private readonly onDocumentPointerDown; /** What had focus when the panel opened (normally its global action), for Escape to return to. */ private returnFocus; protected willUpdate(changed: Map): void; protected updated(changed: Map): void; private readonly onKeydown; private readonly onFocusOut; render(): import("lit-html").TemplateResult<1>; } export interface UiHeaderPanelEventMap extends HTMLElementEventMap { 'ui-toggle': CustomEvent; } /** Typed listeners for UiHeaderPanel's events (declaration merging with the class). */ export interface UiHeaderPanel { addEventListener(type: K, listener: (this: UiHeaderPanel, event: UiHeaderPanelEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: UiHeaderPanel, event: UiHeaderPanelEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare global { interface HTMLElementTagNameMap { 'ui-header-panel': UiHeaderPanel; } }