import { getConfigurationFilePaths , getConfigFromFiles , applyConfigOverrides } from './utils' ; import { ApmConfiguration } from './config' ; param argv param rootDir param production export const loadConfiguration = ( argv , rootDir , isDistributable ) : ApmConfiguration => { const configPaths = getConfigurationFilePaths ( argv ) ; const rawConfiguration = getConfigFromFiles ( configPaths ) ; applyConfigOverrides ( rawConfiguration , argv ) ; return new ApmConfiguration ( rootDir , rawConfiguration , isDistributable ) ; } ;