import type { TooltipPlacement } from '../tooltip/tooltip.js'; import { type MenuPlacement, type MenuSelectDetail } from '../menu/menu.js'; import '../tooltip/tooltip.js'; import '../menu/menu.js'; import { type OpenDetail } from '../shared/events.js'; import { UiElement } from '../shared/element.js'; export type OverflowMenuSize = 'sm' | 'md' | 'lg'; declare const UiOverflowMenu_base: (new (...args: any[]) => import("../shared/align.ts").AlignAlias) & typeof UiElement; /** * Carbon `OverflowMenu` (v12): a ghost icon button ("⋮", named by `label` through an icon * tooltip) that opens a `` of the slotted items. Sizes sm 32 / md 40 / lg 48px. * Listen for `ui-select` on this element; `event.target` is the activated ``. * * @slot - ``, ``, `` * @slot icon - Replaces the "⋮" icon * @fires ui-select - bubbles from the activated item: detail { value, label, checked } * @fires ui-toggle - detail: { open } * @csspart trigger - The icon button * @csspart menu - The `` * @attr align - Carbon's name for `placement` (same values) * @cssprop --ui-button-radius - Corner radius of the trigger (the button setting) * @cssprop --ui-overflow-open-background / --ui-overflow-open-shadow - The trigger while open (default: it joins the menu, Carbon's look) * @cssprop --ui-focus-offset - `outline-offset` of its focus ring (default -2px: inside; Kanok: 2px outside) */ export declare class UiOverflowMenu extends UiOverflowMenu_base { /** `el.focus()` lands on the control inside. */ static readonly shadowRootOptions: ShadowRootInit; static readonly styles: import("lit").CSSResult; /** Accessible name of the trigger and the menu. */ label: string; private readonly localize; size: OverflowMenuSize; placement: MenuPlacement; tooltipPlacement: TooltipPlacement; disabled: boolean; open: boolean; private readonly trigger; private readonly menu; private readonly menuId; protected updated(changed: Map): void; private onTriggerKeydown; private toggle; render(): import("lit-html").TemplateResult<1>; } export interface UiOverflowMenuEventMap extends HTMLElementEventMap { 'ui-select': CustomEvent; 'ui-toggle': CustomEvent; } /** Typed listeners for UiOverflowMenu's events (declaration merging with the class). */ export interface UiOverflowMenu { addEventListener(type: K, listener: (this: UiOverflowMenu, event: UiOverflowMenuEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: UiOverflowMenu, event: UiOverflowMenuEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare global { interface HTMLElementTagNameMap { 'ui-overflow-menu': UiOverflowMenu; } } export {};