/** * Platform-agnostic utilities for external application launching * Provides clean environment handling for VS Code, terminals, and other apps */ /** * Clears the cached env keys - useful for testing or when .env files change */ export declare const clearEnvKeysCache: () => void; /** * Gets a clean shell environment for launching external applications * * This function returns the user's shell environment WITHOUT Script Kit's modifications. * External apps (VS Code, terminals, etc.) launched with this environment will behave * as if launched normally from the system, preventing package manager conflicts. * * The environment is cached at app startup and passed via KIT_CLEAN_SHELL_ENV. * * @returns Clean environment variables suitable for external application launches */ export declare const getCleanEnvForExternalApp: () => Record; /** * Gets a clean environment for launching external applications * * This combines the clean shell environment (from user's shell config) with * explicit removal of any secrets/keys from ~/.kenv/.env files. * * This ensures that: * 1. External apps get the user's normal shell environment (PATH, LANG, etc.) * 2. Script Kit secrets (API keys, etc.) do NOT leak to external processes * * @returns Clean environment suitable for exec() calls that launch external apps */ export declare const getCleanEnvForLaunch: () => Record;