"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_runtime = require('../../_virtual/_rolldown/runtime.js');
const require_releases_socket_btm = require('../../releases/socket-btm.js');
let node_process = require("node:process");
node_process = require_runtime.__toESM(node_process);

//#region src/external-tools/jre/detect-platform-arch.ts
/**
* @file `getCurrentPlatformArch()` — resolves the current machine to a
*   `platform-arch` string suitable for the Adoptium asset-name map. Wraps
*   `getPlatformArch` from `src/releases/socket-btm` so external-tools modules
*   don't need to know about releases' platform/arch typing. Returns
*   `undefined` on unsupported platform/arch combos.
*/
function getCurrentPlatformArch() {
	/* c8 ignore start - depends on process.platform/arch. */
	try {
		return require_releases_socket_btm.getPlatformArch(node_process.default.platform, node_process.default.arch, require_releases_socket_btm.detectLibc());
	} catch {
		return;
	}
	/* c8 ignore stop */
}

//#endregion
exports.getCurrentPlatformArch = getCurrentPlatformArch;