export declare const LAUNCH_AGENT_LABEL = "com.curato.shell-env"; export declare function launchAgentPath(): string; export declare function buildPlist(vars: string[], sourceFile: string): string; export interface InstallShellEnvOptions { vars: string[]; sourceFile?: string; dryRun: boolean; /** Override plist destination — primarily for tests. */ targetPath?: string; /** Skip actually invoking launchctl — primarily for tests. */ skipLoad?: boolean; } export interface InstallShellEnvResult { plistPath: string; plistContent: string; wrote: boolean; loaded: boolean; vars: string[]; } export declare function installShellEnv(opts: InstallShellEnvOptions): InstallShellEnvResult; export interface UninstallShellEnvOptions { dryRun: boolean; /** Override plist destination — primarily for tests. */ targetPath?: string; /** Skip actually invoking launchctl — primarily for tests. */ skipUnload?: boolean; /** Also call `launchctl unsetenv` for these vars. */ varsToUnset?: string[]; } export interface UninstallShellEnvResult { plistPath: string; existed: boolean; removed: boolean; unloaded: boolean; unsetVars: string[]; } export declare function uninstallShellEnv(opts: UninstallShellEnvOptions): UninstallShellEnvResult; /** * Extract the var names a currently-installed plist forwards. Used by * `uninstall-shell-env` to know which vars to `launchctl unsetenv`. */ export declare function readInstalledVars(targetPath?: string): string[]; //# sourceMappingURL=shell-env.d.ts.map