export type EnvValueEncoding = "minimal" | "json"; export type UpdateEnvFileContentsOptions = { valueEncoding?: EnvValueEncoding; }; export declare function encodeEnvValue(value: string, encoding?: EnvValueEncoding): string; /** * Updates only the named assignments and preserves every unrelated byte. * * Duplicate managed keys are intentional: every occurrence is checked and any * stale occurrence is updated. Occurrences that already decode to the desired * value retain their original quoting and spacing. */ export declare function updateEnvFileContents(contents: string, entries: Record, options?: UpdateEnvFileContentsOptions): string; /** Writes a changed env file through a same-directory temporary file and rename. */ export declare function writeEnvFileAtomicallyIfChanged(filePath: string, previousContents: string | null, nextContents: string): boolean; //# sourceMappingURL=env-file.d.ts.map