text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const endpoints_1 = require("./endpoints");
  const http_client_1 = require("./http-client");
  /**
   * Gets the latest client version.
   */
  async function getClientVersion() {
      const result = await http_client_1.get(endpoints_1.Endpoints.Version);
      return result.toString();
  }
  exports.getClientVersion = getClientVersion;
  /**
   * Gets the latest asset version.
   */
  async function getAssetVersion() {
      const result = await http_client_1.get(endpoints_1.Endpoints.StaticDrips + '/current/version.txt');
      return result.toString();
  }
  exports.getAssetVersion = getAssetVersion;
  /**
   * Gets the latest version of both the client and the assets.
   */
  async function getVersions() {
      const [clientVersion, assetVersion] = await Promise.all([
          getClientVersion(),
          getAssetVersion(),
      ]);
      return { clientVersion, assetVersion };
  }
  exports.getVersions = getVersions;
  