import { DotenvParseInput } from "dotenv-expand"; import { Lazy } from "lazy-val"; export interface ReadConfigResult { readonly result: T; readonly configFile: string | null; } export declare function findAndReadConfig(request: ReadConfigRequest): Promise | null>; export declare function orNullIfFileNotExist(promise: Promise): Promise; export declare function orIfFileNotExist(promise: Promise, fallbackValue: T): Promise; export interface ReadConfigRequest { packageKey: string; configFilename: string; projectDir: string; packageMetadata: Lazy | null> | null; } export declare function loadConfig(request: ReadConfigRequest): Promise | null>; export declare function getConfig(request: ReadConfigRequest, configPath?: string | null): Promise | null>; export declare function loadParentConfig(request: ReadConfigRequest, spec: string): Promise>; export declare function loadEnv(envFile: string): Promise;