import { AfterViewInit, ElementRef, EventEmitter, Renderer2 } from '@angular/core'; import * as i0 from "@angular/core"; /** * this directive helps us with the up/down key presses * in order to set host element in focus */ export declare class SingArrowKeyNavigationDirective implements AfterViewInit { private elementRef; renderer: Renderer2; /** * let the host element to know when the element is focused */ focusSet: EventEmitter; constructor(elementRef: ElementRef, renderer: Renderer2); ngAfterViewInit(): void; /** * listen to keydown events on the host element * for key down: we find the next element sibling and set it in focus * for key up: we find the previous element sibling and set it in focus * if the key code is not one of the above - do nothing * @param event */ onKeydownHandler(event: KeyboardEvent): void; /** * set element in focus and emit an event to the host element * that it is now in focus * @param elementToFocus */ setElementFocus(elementToFocus: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } //# sourceMappingURL=arrow-key-navigation.directive.d.ts.map