import { Observable } from 'rxjs' ; import { GlobalSearchProviderFindOptions , GlobalSearchProviderResult , GlobalSearchProviderFindParams , } from '../common/types' ; import { SearchServiceSetup , SearchServiceStart } from './services' ; export type GlobalSearchPluginSetup = Pick < SearchServiceSetup , 'registerResultProvider' > ; export type GlobalSearchPluginStart = Pick < SearchServiceStart , 'find' | 'getSearchableTypes' > ; /**
 * GlobalSearch result provider, to be registered using the  GlobalSearchPluginSetup export interface GlobalSearchResultProvider { /**
     * id of the provider
     */ id : string ; example find ( search , options ) : Observable < GlobalSearchProviderResult [ ] > ; /**
     * Method that should return all the possible  GlobalSearchProviderResult . type of results that
     * this provider can return.
      getSearchableTypes : ( ) => string [ ] | Promise < string [ ] > ; }