export interface LoadEnvFileOptions { /** Directory to look in. Defaults to the current working directory. */ cwd?: string; /** * The loader itself. Injected by tests; `null` models a runtime older than * Node 20.12, where `process.loadEnvFile` does not exist. */ load?: ((path: string) => void) | null; } export interface LoadEnvFileResult { /** True only when a `.env` was found AND applied to `process.env`. */ loaded: boolean; /** Absolute path of the file that was loaded. */ path?: string; /** Why nothing was loaded, when a `.env` existed but could not be used. */ reason?: string; } /** Load `/.env` into `process.env` if it exists. */ export declare function loadEnvFile(opts?: LoadEnvFileOptions): LoadEnvFileResult;