2016-12-27 23:09:47 +08:00
|
|
|
import {AutoCompleteItem, SearchTypes} from "../../../common/entities/AutoCompleteItem";
|
2016-12-28 18:50:05 +08:00
|
|
|
import {SearchResultDTO} from "../../../common/entities/SearchResult";
|
2016-05-05 00:34:54 +08:00
|
|
|
export interface ISearchManager {
|
2016-12-27 06:36:38 +08:00
|
|
|
autocomplete(text: string, cb: (error: any, result: Array<AutoCompleteItem>) => void): void;
|
2016-12-28 18:50:05 +08:00
|
|
|
search(text: string, searchType: SearchTypes, cb: (error: any, result: SearchResultDTO) => void): void;
|
|
|
|
instantSearch(text: string, cb: (error: any, result: SearchResultDTO) => void): void;
|
2017-07-08 04:54:18 +08:00
|
|
|
isSupported(): boolean;
|
|
|
|
}
|