import { FocusableOption, FocusMonitor, FocusOrigin } from '@angular/cdk/a11y'; import { ElementRef, OnDestroy } from '@angular/core'; import { CanDisable, CanDisableCtor } from '../core'; import { Subject } from 'rxjs'; import { OuiMenuPanel } from './menu-panel'; import * as i0 from "@angular/core"; export declare class OuiMenuItemBase { } export declare const _OuiMenuItemMixinBase: CanDisableCtor & typeof OuiMenuItemBase; /** * This directive is intended to be used inside an oui-menu tag. * It exists mostly to set the role attribute. */ export declare class OuiMenuItem extends _OuiMenuItemMixinBase implements FocusableOption, CanDisable, OnDestroy { private _elementRef; private _focusMonitor?; private _parentMenu?; /** ARIA role for the menu item. */ role: 'menuitem' | 'menuitemradio' | 'menuitemcheckbox'; private _document; /** Stream that emits when the menu item is hovered. */ readonly _hovered: Subject; /** Whether the menu item is highlighted. */ _highlighted: boolean; /** Whether the menu item acts as a trigger for a sub-menu. */ _triggersSubmenu: boolean; constructor(_elementRef: ElementRef, document?: any, _focusMonitor?: FocusMonitor, _parentMenu?: OuiMenuPanel); /** Focuses the menu item. */ focus(origin?: FocusOrigin): void; ngOnDestroy(): void; /** Used to set the `tabindex`. */ _getTabIndex(): string; /** Returns the host DOM element. */ _getHostElement(): HTMLElement; /** Prevents the default element actions if it is disabled. */ _checkDisabled(event: Event): void; /** Emits to the hover stream. */ _handleMouseEnter(): void; /** Gets the label to be used when determining whether the option should be focused. */ getLabel(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=menu-item.d.ts.map