import { BooleanInput } from '@angular/cdk/coercion'; import * as i0 from '@angular/core'; import { ChangeDetectorRef, OnDestroy, AfterViewInit, ElementRef } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from '@aposin/ng-aquila/icon'; import { FocusMonitor } from '@angular/cdk/a11y'; /** * This components is a collapsible menu for usage on smaller devices. * * Can contain any content, but usually [nxMenuLink], [nxMenuGroup] and [nxAction]. */ declare class NxMenuComponent { private readonly _cdr; /** Whether the menu is open or closed. */ set open(value: BooleanInput); get open(): boolean; private _open; constructor(_cdr: ChangeDetectorRef); toggle(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * This is a menu link. * It adds styling to a link and is usually used within a [nxMenuItem]. */ declare class NxMenuLinkDirective implements OnDestroy, AfterViewInit { private readonly _elementRef; private readonly _focusMonitor; constructor(_elementRef: ElementRef, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * This is a menu item is used to structure content whithin a menu. */ declare class NxMenuItemDirective { set size(value: string); get size(): string; private _size; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } type NxMenuButtonType = 'root' | 'nested'; /** * @title MenuButton */ declare class NxMenuButtonComponent implements OnDestroy, AfterViewInit { private readonly _cdr; private readonly _focusMonitor; private readonly _elementRef; /** Whether this menu button is expandable or not. Will add a caret icon. */ set expandable(value: BooleanInput); get expandable(): boolean; private _expandable; /** * Whether this menu button is expanded or not. * Only works in combination with the `expandable` option set to `true`. */ set expanded(value: BooleanInput); get expanded(): BooleanInput; private _expanded; /** * The type of this menu button. * Can be `primary` or `secondary`, defaults to `primary`. */ set type(value: NxMenuButtonType); get type(): NxMenuButtonType; private _type; constructor(_cdr: ChangeDetectorRef, _focusMonitor: FocusMonitor, _elementRef: ElementRef); ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Icon that can be added to a [nxButton]. */ declare class NxMenuButtonIconDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxMenuModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NxMenuButtonComponent, NxMenuButtonIconDirective, NxMenuComponent, NxMenuItemDirective, NxMenuLinkDirective, NxMenuModule }; export type { NxMenuButtonType };