import { InteractivityChecker } from '@angular/cdk/a11y'; import { ChangeDetectorRef, ElementRef, NgZone, OnInit } from '@angular/core'; import * as i0 from "@angular/core"; /** * A directive that autofocuses the decorated element OR the first focusable element inside the decorated element. * * @export */ export declare class UiAutofocusDirective implements OnInit { private _el; private _zone; private _cd; private _checker; /** * Configure if the element should be focused. * Defaults to: `true` * */ set uiAutofocus(condition: boolean); /** * Set to `true` if the element needs to be refocused. * eg: `[refocus]="refocu$ | async"` * */ set refocus(condition: boolean); /** * Where the selection location should be after the element is focused. * */ selectionLocation: 'start' | 'end'; /** * The decorated `HTMLElement` reference. * */ element?: HTMLElement; private _autofocus; /** * @ignore */ constructor(_el: ElementRef, _zone: NgZone, _cd: ChangeDetectorRef, _checker: InteractivityChecker); /** * @ignore */ ngOnInit(): void; /** * Enqueues a focus event. * */ enqueueFocus(): void; /** * Focus the `element`. * */ focus(element?: HTMLElement): void; private _getFocusableNode; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }