import { ISuggestion } from './ISuggestion' ; import { IPropertyPaneGroup } from '@microsoft/sp-property-pane' ; import { WebPartContext } from '@microsoft/sp-webpart-base' ; 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 : WebPartContext ; /**
     * Flag indicating if the provider supports zero term suggestions
     */ isZeroTermSuggestionsEnabled : boolean ; /**
     * Method called during the Web Part initialization.
     */ onInit ( ) : void | Promise < void > ; param queryText getSuggestions ( queryText ) : Promise < ISuggestion [ ] > ; /**
     * Returns the zero term suggestions
     */ getZeroTermSuggestions ( ) : Promise < ISuggestion [ ] > ; /**
     * Returns the data source property pane option fields if any.
     */ getPropertyPaneGroupsConfiguration ( ) : IPropertyPaneGroup [ ] ; param propertyPath param oldValue param newValue onPropertyUpdate ( propertyPath , oldValue , newValue ) : void ; }