import { HttpStart } from 'src/core/public' ; interface ServerSearchableTypesResponse { types : string [ ] ; } export const fetchServerSearchableTypes = async ( http ) => { const { types } = await http . get < ServerSearchableTypesResponse > ( '/internal/global_search/searchable_types' ) ; return types ; } ;