import { OnInit, OnDestroy, ElementRef, AfterViewInit } from '@angular/core'; import { Options } from '../options/options.component'; import { BehaviorSubject } from 'rxjs'; import { FocusOut } from 'projects/exi-ui/src/lib/utils/focusOut.class'; export declare class SearcherComponent implements OnInit, AfterViewInit, OnDestroy { private hostRef; ctx: ISearcher; searcher: Searcher; searchable: string; options: Options; focusOut: FocusOut; isFocused: boolean; constructor(hostRef: ElementRef); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; customSelect(): void; focus(): void; private clearSuggested; } export declare type SearchMode = 'includes' | 'start' | 'end' | 'euqals'; export interface ISearcher extends Options { customSelect?: (searchable: string) => void; isInputDisabled?: () => boolean; isSelected: (val: D) => boolean; } export declare class Searcher { ctx: ISearcher; readonly suggested: BehaviorSubject; private unique; private sbcr; isSomeFindings: boolean; constructor(ctx: ISearcher); search(searchable: string): D[]; clearSuggested(): void; tryTogetFromUnique(title: string): D | null; init(): void; destroy(): void; }