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

//#region src/env/temp-dir.ts
/**
* @file Temporary directory environment variable getters. Different platforms
*   use different environment variables for temp directories.
*/
/**
* TEMP environment variable. Windows temporary directory path.
*
* @example
*   ;```typescript
*   import { getTemp } from '@socketsecurity/lib/env/temp-dir'
*
*   const temp = getTemp()
*   // e.g. 'C:\\Windows\\Temp' or undefined
*   ```
*
* @returns The Windows temp directory path, or `undefined` if not set
*/
/*@__NO_SIDE_EFFECTS__*/
function getTemp() {
	return require_env_rewire.getEnvValue("TEMP");
}
/**
* TMP environment variable. Alternative temporary directory path.
*
* @example
*   ;```typescript
*   import { getTmp } from '@socketsecurity/lib/env/temp-dir'
*
*   const tmp = getTmp()
*   // e.g. '/tmp' or undefined
*   ```
*
* @returns The alternative temp directory path, or `undefined` if not set
*/
/*@__NO_SIDE_EFFECTS__*/
function getTmp() {
	return require_env_rewire.getEnvValue("TMP");
}
/**
* TMPDIR environment variable. Unix/macOS temporary directory path.
*
* @example
*   ;```typescript
*   import { getTmpdir } from '@socketsecurity/lib/env/temp-dir'
*
*   const tmpdir = getTmpdir()
*   // e.g. '/tmp' or undefined
*   ```
*
* @returns The Unix/macOS temp directory path, or `undefined` if not set
*/
/*@__NO_SIDE_EFFECTS__*/
function getTmpdir() {
	return require_env_rewire.getEnvValue("TMPDIR");
}

//#endregion
exports.getTemp = getTemp;
exports.getTmp = getTmp;
exports.getTmpdir = getTmpdir;