export declare const DOTENV_FILES: string[];
export declare function readEnvVariable(name: string, envFile?: string, cwd?: string): Promise<string | undefined>;
/**
 * Sets `name` in .env content. Every existing assignment of `name` is removed, including the
 * continuation lines of a quoted multi-line value, and the new one takes the place of the first, so
 * dotenv reads the new value even when the file assigned the variable more than once. Lines inside
 * another variable's quoted value are kept as they are, even when they look like an assignment.
 */
export declare function upsertEnvLine(content: string, name: string, value: string): string;
/**
 * Checks that `file` can take the secret before the endpoint's secret is rotated, so a bad
 * destination fails without changing anything. Refuses symlinks, which could point the secret at a
 * tracked or shared file.
 */
export declare function prepareEnvFile(file: string, cwd?: string): Promise<string>;
/** Writes the variable and reports whether other users can read the file. */
export declare function saveToEnvFile(path: string, name: string, value: string): Promise<{
    readableByOthers: boolean;
}>;
/** Last resort when the destination write fails after rotating: a private temporary file. */
export declare function saveToPrivateTempFile(name: string, value: string): Promise<string>;
export declare function trimSecret(value: string): string;
