/** * @file Windows environment variable getters. Provides access to * Windows-specific user directory paths. */ /** * APPDATA environment variable. Points to the Application Data directory on * Windows. * * @example * ;```typescript * import { getAppdata } from '@socketsecurity/lib/env/windows' * * const appdata = getAppdata() * // e.g. 'C:\\Users\\Public\\AppData\\Roaming' or undefined * ``` * * @returns The Windows AppData roaming directory, or `undefined` if not set */ export declare function getAppdata(): string | undefined; /** * The Windows roaming Application Data directory, falling back to the * conventional location under `homeDir` when APPDATA is unset. Sole owner of * the `AppData/Roaming` tail: every caller reads it from here so a relocation * is a one-file edit. * * @example * ;```typescript * import { getAppdataDir } from '@socketsecurity/lib/env/windows' * * const dir = getAppdataDir(os.homedir()) * // e.g. 'C:\\Users\\Public\\AppData\\Roaming' * ``` * * @param homeDir - The user home directory used for the fallback. * * @returns The roaming AppData directory path */ export declare function getAppdataDir(homeDir: string): string; /** * COMSPEC environment variable. Points to the Windows command processor * (typically cmd.exe). * * @example * ;```typescript * import { getComspec } from '@socketsecurity/lib/env/windows' * * const comspec = getComspec() * // e.g. 'C:\\Windows\\system32\\cmd.exe' or undefined * ``` * * @returns The path to the command processor, or `undefined` if not set */ export declare function getComspec(): string | undefined; /** * LOCALAPPDATA environment variable. Points to the Local Application Data * directory on Windows. * * @example * ;```typescript * import { getLocalappdata } from '@socketsecurity/lib/env/windows' * * const localAppdata = getLocalappdata() * // e.g. 'C:\\Users\\Public\\AppData\\Local' or undefined * ``` * * @returns The Windows local AppData directory, or `undefined` if not set */ export declare function getLocalappdata(): string | undefined; /** * USERPROFILE environment variable. Windows user home directory path. * * @example * ;```typescript * import { getUserprofile } from '@socketsecurity/lib/env/windows' * * const userprofile = getUserprofile() * // e.g. 'C:\\Users\\Public' or undefined * ``` * * @returns The Windows user profile directory, or `undefined` if not set */ export declare function getUserprofile(): string | undefined;