import type { IEnvironment } from '../shared/types.js'; import { type IResolvedConfig } from './types.js'; /** * Reads the configuration file and returns the configuration object. * @param configPath The path to the configuration file. * @param environment The current environment. * @returns The configuration object. * @throws * - FAILED_TO_READ_BASE_CONFIG: if the base configuration file could not be read or parsed. * - INVALID_FIREBASE_CONFIG: if the configured env var key is invalid or not set. * - INVALID_ENVIRONMENT: if the provided environment is not recognized. * - FAILED_TO_READ_FIREBASE_CONFIG: if the Firebase configuration could not be read from the environment variable. * - FAILED_TO_BUILD_CONFIG: if the configuration file could not be read or parsed. */ export declare const readConfigFile: (configPath: string, environment: IEnvironment | undefined) => IResolvedConfig;