/** * Bounded, cross-runtime dotenv parsing and loading. * * The parser intentionally fails closed on malformed assignments. This keeps * configuration behavior identical across Deno, Node.js, and Bun and avoids * silently starting a service with only part of its intended configuration. * * @module */ /** Options for {@link load}. */ export interface LoadOptions { /** * Path to the dotenv file. Pass `null` to disable file loading. * * @default ".env" */ envPath?: string | URL | null; /** Export values that are not already present in the host environment. */ export?: boolean; /** * Empty values are always retained. Kept for source compatibility with the * previous shim. * * @deprecated Empty values no longer require an option. */ allowEmptyValues?: boolean; /** * Retained only so callers of the former shim continue to type-check. * * @deprecated The current dotenv contract does not load example files. */ examplePath?: string | URL | null; /** * Retained only so callers of the former shim continue to type-check. * * @deprecated The current dotenv contract does not load defaults files. */ defaultsPath?: string | URL | null; } /** * Parse dotenv content into a null-prototype record. * * Unquoted values support `$KEY`, `${KEY}`, and `${KEY:-default}` * interpolation. Single- and double-quoted values are not interpolated; * double-quoted `\n`, `\r`, and `\t` escapes are expanded. */ export declare function parse(content: string): Record; /** * Load and parse a dotenv file. * * Missing files produce an empty null-prototype record. Other I/O and parsing * failures are propagated. */ export declare function load(options?: LoadOptions): Promise>; //# sourceMappingURL=dotenv.d.ts.map