import { schema , TypeOf } from '@kbn/config-schema' ; import { PluginConfigDescriptor } from 'kibana/server' ; const configSchema = schema . object ( { search_timeout : schema . duration ( { defaultValue : '30s' } ) , } ) ; export type GlobalSearchConfigType = TypeOf < typeof configSchema > ; export const config = { schema : configSchema , exposeToBrowser : { search_timeout : true , } , } ;