import { FocusableOption, FocusMonitor, FocusOrigin } from '@angular/cdk/a11y'; import { ElementRef, OnDestroy } from '@angular/core'; import { Subject } from 'rxjs'; import { CanDisable } from 'vdl-angular/core'; import { VdlMenuPanel } from './menu-panel'; /** @docs-private */ export declare class VdlMenuItemBase { } export declare const _VdlMenuItemMixinBase: (new (...args: any[]) => CanDisable) & typeof VdlMenuItemBase; /** * This directive is intended to be used inside an vdl-menu tag. * It exists mostly to set the role attribute. */ export declare class VdlMenuItem extends _VdlMenuItemMixinBase implements FocusableOption, CanDisable, OnDestroy { private _elementRef; private _focusMonitor; private _parentMenu; 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?: VdlMenuPanel); /** 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; }