/** * @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 */ export declare function getTemp(): string | undefined; /** * 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 */ export declare function getTmp(): string | undefined; /** * 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 */ export declare function getTmpdir(): string | undefined;