import { KibanaConfig } from './read_kibana_config' ; export const getHttpAuth = ( config ) => { const httpAuth = config [ 'elasticsearch.username' ] && config [ 'elasticsearch.password' ] ? { username : config [ 'elasticsearch.username' ] , password : config [ 'elasticsearch.password' ] , } : null ; return httpAuth ; } ;