import { ISuggestion } from './ISuggestion'; export interface ISuggestionProvider { /** * The Web Part properties in the property bag. Corresponds to the isolated 'suggestionsProperties' property in the global property bag. */ properties: any; /** * Context of the main Web Part */ context: any; /** * Flag indicating if the provider supports zero term suggestions */ isZeroTermSuggestionsEnabled: boolean; /** * Method called during the Web Part initialization. */ onInit(): void | Promise; /** * Retrieve suggestions according to the entered query text * @param queryText the input query text from the search box */ getSuggestions(queryText: string): Promise; /** * Returns the zero term suggestions */ getZeroTermSuggestions(): Promise; /** * Returns the data source property pane option fields if any. */ getPropertyPaneGroupsConfiguration(): any[]; /** * Method called when a property pane field in changed in the Web Part. * @param propertyPath the property path. * @param oldValue the old value. * @param newValue the new value. */ onPropertyUpdate(propertyPath: string, oldValue: any, newValue: any): void; } //# sourceMappingURL=ISuggestionProvider.d.ts.map