"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_node_os = require('../node/os.js');

//#region src/constants/platform.ts
/**
* @file Platform detection and OS-specific constants.
*/
let _arch;
/**
* Get the current CPU architecture (memoized).
*/
function getArch() {
	if (_arch === void 0) _arch = (/* @__PURE__ */ require_node_os.getNodeOs()).arch();
	return _arch;
}
let _platform;
/**
* Get the current platform (memoized).
*/
function getPlatform() {
	if (_platform === void 0) _platform = (/* @__PURE__ */ require_node_os.getNodeOs()).platform();
	return _platform;
}
const DARWIN = getPlatform() === "darwin";
const WIN32 = getPlatform() === "win32";
const S_IXUSR = 64;
const S_IXGRP = 8;
const S_IXOTH = 1;

//#endregion
exports.DARWIN = DARWIN;
exports.S_IXGRP = S_IXGRP;
exports.S_IXOTH = S_IXOTH;
exports.S_IXUSR = S_IXUSR;
exports.WIN32 = WIN32;
exports.getArch = getArch;
exports.getPlatform = getPlatform;