import { ChangeDetectorRef, DoCheck, ElementRef, OnDestroy, Renderer2 } from "@angular/core"; import { NgControl } from "@angular/forms"; import { RxEventually } from "@spscommerce/ng-utils"; import { SpsFormControlComponent } from "../forms/sps-form-control.abstract.component"; import { SpsOptionListComponent } from "../option-list/sps-option-list.component"; export declare class SpsAutocompleteComponent extends SpsFormControlComponent implements DoCheck, OnDestroy { protected _changeDetector: ChangeDetectorRef; static readonly displayName = "sps-autocomplete"; static readonly props: { suggestions: { type: string; required: boolean; }; placeholder: string; searchDebounce: string; }; private static _instances; isOpen: any; opensUpward: any; readonly pending: boolean; /** The list of suggestions, or a function that takes in the text entered by the user and * returns a list of suggestions. */ suggestions: RxEventually> | ((filter?: string) => RxEventually>); /** The placeholder text to be displayed in the text input when it is empty. */ placeholder: string; /** The amount of time to debounce the text input before updating the suggestions, in ms. */ searchDebounce: number; readonly _spsAutocompleteClass = true; dropdown: SpsOptionListComponent; /** Ref to the text input element. */ inputElement: ElementRef; value: string; static _onDocumentClick(event: MouseEvent): void; constructor(_el: ElementRef, _renderer: Renderer2, _ngControl: NgControl, _changeDetector: ChangeDetectorRef); ngDoCheck(): void; ngOnDestroy(): void; selectSuggestion(suggestion: string): void; _onClearClick(): void; setDisabledState(isDisabled: boolean): void; }