UNPKG

843 BTypeScriptView Raw
1import { SearchQueryInit } from "./types.js";
2import { SearchResults } from "./query.js";
3import { ISuggestQuery, ISuggestResult } from "./suggest.js";
4export * from "./types.js";
5export { ISearch, SearchQueryBuilder, SearchResults, Search, } from "./query.js";
6export { ISuggest, IPersonalResultSuggestion, ISuggestQuery, ISuggestResult, Suggest, } from "./suggest.js";
7declare module "../fi" {
8 interface SPFI {
9 /**
10 * Conduct a search
11 *
12 * @param query Parameters for the search
13 */
14 search(query: SearchQueryInit): Promise<SearchResults>;
15 /**
16 * Conduct a suggest search query
17 *
18 * @param query Parameters for the search
19 */
20 searchSuggest(query: string | ISuggestQuery): Promise<ISuggestResult>;
21 }
22}
23//# sourceMappingURL=index.d.ts.map
\No newline at end of file