import type { SecretMapping } from './types.js'; /** * Update a specific key's value in an env file * Uses atomic write (temp file + rename) to prevent corruption * * @param filePath - Path to the env file * @param envVar - Environment variable name to update * @param newValue - New value for the environment variable * @returns true if the file was updated, false if the key was added */ export declare function updateEnvFile(filePath: string, envVar: string, newValue: string): { updated: boolean; added: boolean; }; /** * Update multiple keys in an env file atomically * * @param filePath - Path to the env file * @param updates - Map of envVar -> newValue * @returns Summary of updates */ export declare function updateEnvFileMultiple(filePath: string, updates: Record): { updated: number; added: number; }; /** * Find which env var(s) in a file map to a specific API key name * This is used when handling rotation events to know which env vars to update * * @param mappings - The secret mappings from exec config * @param apiKeyName - The managed API key name from the rotation event * @returns Array of env var names that use this API key */ export declare function findEnvVarsForApiKey(mappings: (SecretMapping & { literal?: string; })[], apiKeyName: string): string[]; //# sourceMappingURL=env-file.d.ts.map