text: // Copyright (c) Microsoft. All rights reserved.
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  'use strict';
  Object.defineProperty(exports, "__esModule", { value: true });
  var azure_iot_common_1 = require("azure-iot-common");
  var azure_iot_common_2 = require("azure-iot-common");
  // tslint:disable-next-line:no-var-requires
  var packageJson = require('../package.json');
  function getUserAgentString(done) {
      return azure_iot_common_2.noErrorCallbackToPromise(function (_callback) {
          /*Codes_SRS_NODE_DEVICE_UTILS_18_001: [`getUserAgentString` shall call `getAgentPlatformString` to get the platform string.]*/
          azure_iot_common_1.getAgentPlatformString(function (platformString) {
              /*Codes_SRS_NODE_DEVICE_UTILS_18_002: [`getUserAgentString` shall call its `callback` with a string in the form 'azure-iot-device/<packageJson.version>(<platformString>)'.]*/
              _callback(packageJson.name + '/' + packageJson.version + ' (' + platformString + ')');
          });
      }, done);
  }
  exports.getUserAgentString = getUserAgentString;
  //# sourceMappingURL=utils.js.map