(runtime: Pick<FsReadDeps, "read_text_file">, path: string): Promise<Record<string, string> | null> Load and parse an env file.
Returns null only when the file does not exist. Other read errors (permission denied, I/O failure, etc.) are re-thrown so callers can distinguish "no file" from "couldn't read".
runtime
runtime with read_text_file capability
Pick<FsReadDeps, "read_text_file">path
path to env file
stringreturns
Promise<Record<string, string> | null> parsed env record, or null if file doesn't exist
throws
Error- if reading fails for any reason other than `ENOENT` / `NotFound`