// @flowimportLoggerfrom'../Logger';import{createGlobalProxyAgent,}from'../factories';importtype{ProxyAgentConfigurationInputType,}from'../types';constlog=Logger.child({namespace:'bootstrap',});exportdefault(configurationInput?:ProxyAgentConfigurationInputType):boolean=>{if(global.GLOBAL_AGENT){log.warn('found global.GLOBAL_AGENT; second attempt to bootstrap global-agent was ignored');returnfalse;}global.GLOBAL_AGENT=createGlobalProxyAgent(configurationInput);returntrue;};