/** * Branded environment variables. * * phi reads its own `PHI_*` variables — the tool is `phi`, its config lives in * `.phi`, and it already shipped `PHI_DEBUG`, `PHI_DISABLE_*` and `PHI_SANDBOX_*`. * The inherited `PI_*` names stay accepted as a fallback so a script or shell * profile written against upstream pi keeps working, and writers set both. * * The brand is derived from `APP_NAME`, so a rebranded distribution gets its own * prefix without touching call sites. * * `config.ts` imports this module, so the prefix is read INSIDE the functions and * never at module scope: evaluating `APP_NAME` while the cycle is still * initialising throws "Cannot access 'APP_NAME' before initialization". */ /** Canonical variable name for a suffix, e.g. "OFFLINE" -> "PHI_OFFLINE". */ export declare function brandedEnvName(suffix: string): string; /** Inherited upstream name for a suffix, e.g. "OFFLINE" -> "PI_OFFLINE". */ export declare function legacyEnvName(suffix: string): string; /** Read `PHI_`, falling back to the inherited `PI_`. */ export declare function readBrandedEnv(suffix: string, env?: NodeJS.ProcessEnv): string | undefined; /** Set both the branded and the inherited name, for values handed to child processes. */ export declare function setBrandedEnv(env: NodeJS.ProcessEnv, suffix: string, value: string): void; /** Delete both names, used before repopulating a child environment. */ export declare function deleteBrandedEnv(env: NodeJS.ProcessEnv, suffix: string): void; //# sourceMappingURL=env-vars.d.ts.map