2016-05-16 17:03:11 +08:00
|
|
|
import {AutoCompleteItem, SearchTypes} from "../../common/entities/AutoCompleteItem";
|
2016-05-10 03:43:52 +08:00
|
|
|
import {SearchResult} 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;
|
|
|
|
search(text: string, searchType: SearchTypes, cb: (error: any, result: SearchResult) => void): void;
|
|
|
|
instantSearch(text: string, cb: (error: any, result: SearchResult) => void): void;
|
2016-05-05 00:34:54 +08:00
|
|
|
}
|