import { UiElement } from '../shared/element.js'; import { UiMenuItem } from './menu-item.js'; /** * Carbon `MenuItemGroup` (`role=group` named by `label`) and `MenuItemRadioGroup` * (`selection="single"`: its items become `menuitemradio`, exactly one is `checked`). * * @slot - `` elements * @fires ui-change - detail: { value } when the checked radio item changes */ export declare class UiMenuGroup extends UiElement { static readonly styles: import("lit").CSSResult; label: string; selection: 'none' | 'single'; /** The checked item's value in `selection="single"`. */ value: string; get items(): UiMenuItem[]; connectedCallback(): void; disconnectedCallback(): void; protected updated(): void; private sync; private readonly onSelect; render(): import("lit-html").TemplateResult<1>; } export interface MenuGroupChangeDetail { value: string; } export interface UiMenuGroupEventMap extends HTMLElementEventMap { 'ui-change': CustomEvent; } /** Typed listeners for UiMenuGroup's events (declaration merging with the class). */ export interface UiMenuGroup { addEventListener(type: K, listener: (this: UiMenuGroup, event: UiMenuGroupEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: UiMenuGroup, event: UiMenuGroupEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare global { interface HTMLElementTagNameMap { 'ui-menu-group': UiMenuGroup; } }