import { CdkMenuTrigger } from '@angular/cdk/menu'; import { OnInit } from '@angular/core'; import { HorizontalPlacement, VerticalPlacement } from '../../common/placement'; import * as i0 from "@angular/core"; import * as i1 from "@angular/cdk/menu"; export declare class MenuTriggerDirective implements OnInit { private menuTrigger; private sapphireOverlay; /** * Horizontal alignment of the menu and the trigger. */ align: HorizontalPlacement; /** * Vertical direction in which the menu opens, relative to the trigger. */ direction: VerticalPlacement; constructor(menuTrigger: CdkMenuTrigger); ngOnInit(): void; close(): void; open(): void; toggle(): void; getMenu(): import("@angular/cdk/menu").Menu | undefined; isOpen(): boolean; private handleSpace; private handleEscape; /** * `CdkMenuTrigger` controls overlay creation, and doesn't allow customizing overlay config. * We need to patch it like this to make the menu modal, like other popovers. It's unsafe, as it * relies on private API, so we have to cover the expected result by tests. */ private patchMenuTrigger; private getPlacementValue; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }