import { ActionElementBase } from "@m3e/web/core"; import type { M3eMenuElement } from "./MenuElement"; declare const M3eMenuTriggerElement_base: import("../core/shared/mixins/Constructor").Constructor & typeof ActionElementBase; /** * An element, nested within a clickable element, used to open a menu. * * @description * The `m3e-menu-trigger` component is used to open a menu when nested within a clickable element * such as a button or menu item. It anchors the menu to its invoker, enabling contextual flows and * nested hierarchies. * * @example * The following example illustrates a basic menu. The `m3e-menu-trigger` is used to trigger a `m3e-menu` specified * by the `for` attribute when its parenting element is activated. * ```html * * Basic menu * * * Apple * Apricot * Avocado * Green Apple * Green Grapes * Olive * Orange * * ``` * * @example * The next example illustrates nested menus. Submenus are triggered by placing a `m3e-menu-trigger` inside a `m3e-menu-item`. * ```html * * Nested menus * * * * Fruits with A * * Grapes * Olive * Orange * * * Apricot * Avocado * * Apples * * * * Fuji * Granny Smith * Red Delicious * * ``` * * @tag m3e-menu-trigger * * @slot - Renders the contents of the trigger. */ export declare class M3eMenuTriggerElement extends M3eMenuTriggerElement_base { /** The menu triggered by the element. */ get menu(): M3eMenuElement | null; /** @inheritdoc */ attach(control: HTMLElement): void; /** @inheritdoc */ detach(): void; /** @inheritdoc */ _onClick(): void; } declare global { interface HTMLElementTagNameMap { "m3e-menu-trigger": M3eMenuTriggerElement; } } export {}; //# sourceMappingURL=MenuTriggerElement.d.ts.map