function composeDeviceConfig(opts) {
  const deviceConfig = composeDeviceConfigFromAliased(opts);
  applyCLIOverrides(deviceConfig, opts.cliConfig);
  deviceConfig.device = unpackDeviceQuery(deviceConfig);

  return deviceConfig;
}
@param {DetoxConfigErrorComposer} opts.errorComposer
@param {Detox.DetoxConfig} opts.globalConfig
@param {Detox.DetoxConfiguration} opts.localConfig
@param {*} opts.cliConfig
@returns {Detox.DetoxDeviceConfig}