/** * Cross-platform persistence of environment variables for the user's shell. * * Windows: SetEnvironmentVariable(key, value, "User") via spawned PowerShell. * Equivalent to `setx KEY VAL` but doesn't truncate at 1024 chars. * * Linux/macOS: append/replace an idempotent block to the user's shell rc: * - bash → ~/.bashrc * - zsh → ~/.zshrc * - fish → ~/.config/fish/config.fish * Defaults to ~/.profile if shell can't be detected. * * The block is wrapped in begin/end markers so re-running init does not * accumulate duplicate exports. */ export interface PersistResult { ok: boolean; target: string; message: string; /** True when the caller likely needs to open a new shell for envs to take effect. */ requiresNewShell: boolean; } export declare function persistEnvVars(vars: Record): Promise;