import { NgbTypeaheadSelectItemEvent } from '@ng-bootstrap/ng-bootstrap';
import { Observable } from 'rxjs';
import { AbstractHttpTypeAheadService } from './abstract-http-type-ahead.service';
export declare class HttpTypeAheadComponent {
    service: AbstractHttpTypeAheadService<any>;
    placeholder: string;
    disabled: boolean;
    searching: boolean;
    searchFailed: boolean;
    /**
     * This takes in a stream of user input and returns the results of service.search
     * (they should be compatible with https://ng-bootstrap.github.io/#/components/typeahead)
     *
     * The filtering is done in the service.
     * We are debouncing the results here as to not hammer the API.
     */
    search: (text$: Observable<string>) => Observable<any[]>;
    setSearchStatus(status: {
        searching?: boolean;
        searchFailed?: boolean;
    }): void;
    /**
     * We are preventing the default 'selecting' behaviour here so that we can clear
     * the text input after the selection has been made.
     */
    onSelect(event: NgbTypeaheadSelectItemEvent, input: HTMLInputElement): void;
}
