import { ElementRef, EventEmitter, OnInit } from '@angular/core'; import { EscapeFocusConfig } from '../keyboard-focus.model'; import { PersistFocusDirective } from '../persist/persist-focus.directive'; import { EscapeFocusService } from './escape-focus.service'; import * as i0 from "@angular/core"; /** * Directive to focus the host element whenever the `escape` key is captured. * UiEvents bubble up by nature, which is why the `cxEscGroup` can be used * on a tree of elements. Each time the escape key is used, the focus will * move up in the DOM tree. * */ export declare class EscapeFocusDirective extends PersistFocusDirective implements OnInit { protected elementRef: ElementRef; protected service: EscapeFocusService; protected defaultConfig: EscapeFocusConfig; protected config: EscapeFocusConfig; esc: EventEmitter; /** * Handles the escape key event. * @param event the native keyboard event which contains the escape keydown event */ handleEscape(event: KeyboardEvent): void; constructor(elementRef: ElementRef, service: EscapeFocusService); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }