import { BooleanInput, NumberInput } from '@angular/cdk/coercion'; import { ElementRef, Injector, OnDestroy, ViewContainerRef } from '@angular/core'; import { AutocompleteComponent } from './autocomplete.component'; import { ListboxInputDirective, SapphireOverlay } from '@danske/sapphire-angular'; import { NgControl } from '@angular/forms'; import { Subject } from 'rxjs'; import * as i0 from "@angular/core"; import * as i1 from "@danske/sapphire-angular"; export declare class AutocompleteTriggerDirective implements OnDestroy { private injector; private cdkOverlay; private viewContainerRef; readonly elementRef: ElementRef; readonly listboxInput: ListboxInputDirective; private formControl; /** * A reference to the sp-autocomplete that should be attached to the input. */ set autocomplete(value: AutocompleteComponent | undefined); get autocomplete(): AutocompleteComponent | undefined; /** Whether the autocompletion is disabled */ disabled: BooleanInput; /** * Minimum input length for which the autocompletion popover should be opened. * By default, autocompletion popover is not opened on focus/click for empty * input for a less intrusive UX, considering autocompletion pattern is * typically used for use cases where it only facilitates the input filling, * and selecting a predefined option is not necessary. * @default 1 */ get minLength(): number; set minLength(value: NumberInput); private _minLength; private _autocomplete?; private overlayRef; private contentPortal; protected readonly destroyed: Subject; constructor(injector: Injector, cdkOverlay: SapphireOverlay, viewContainerRef: ViewContainerRef, elementRef: ElementRef, listboxInput: ListboxInputDirective, formControl: NgControl | null); ngOnDestroy(): void; /** Open the autocomplete popover. */ open(): void; close(): void; /** Whether the autocomplete popover is open. */ isOpen(): boolean; /** * Toggle the autocomplete popover */ toggle(): void; /** * Used to set the value of the input, when an autocompletion option is selected. */ setValue(value: string): void; private onInput; private onFocusOrClick; /** Close the opened popover. */ private onBlur; private onKeydown; private getContentPortal; private mayOpen; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }