import { WidgetElement } from "../../internal/widget-element.js"; import { PropertyValues, TemplateResult } from "lit"; import { OdxIconName } from "@odx/icons"; type MenuItemSize = (typeof MenuItemSize)[keyof typeof MenuItemSize]; declare const MenuItemSize: { readonly SM: "sm"; readonly MD: "md"; }; type MenuItemVariant = (typeof MenuItemVariant)[keyof typeof MenuItemVariant]; declare const MenuItemVariant: { readonly NEUTRAL: "neutral"; readonly DANGER: "danger"; readonly SUBTLE: "subtle"; }; type MenuItemPreset = keyof typeof MenuItemPreset; declare const MenuItemPreset: { readonly 'link-external': (element: OdxMenuItem) => void; }; declare global { interface HTMLElementTagNameMap { 'odx-menu-item': OdxMenuItem; } } declare class OdxMenuItem extends WidgetElement { static tagName: string; static styles: import("lit").CSSResult[]; protected anchor?: HTMLAnchorElement; /** * The URL that the element links to. * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href | `href`} attribute */ href: string; /** * Specifies where to open the linked document. * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target | `target` */ target: '_blank' | '_parent' | '_self' | '_top' | ''; /** * Specifies the relationship between the current document and the linked document. * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel | `rel`} attribute */ rel: string; /** * Specifies that the target will be downloaded when a user clicks on the hyperlink. * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download | `download`} attribute */ download?: string; icon?: OdxIconName | null; preset?: MenuItemPreset | null; size: MenuItemSize; variant: MenuItemVariant; connectedCallback(): void; click(): void; protected willUpdate(props: PropertyValues): void; protected render(): TemplateResult; } export { MenuItemPreset, MenuItemSize, MenuItemVariant, OdxMenuItem };