import { CoreSetup } from 'kibana/public' ; import { UrlDrilldownGlobalScope } from './types' ; interface UrlDrilldownGlobalScopeDeps { core : CoreSetup ; } export function globalScopeProvider ( { core , } ) { return ( ) => ( { kibanaUrl : window . location . origin + core . http . basePath . get ( ) , } ) ; }