import { type NetworkConfig, type NetworkNames } from '@aztec/foundation/config'; /** * Fetches remote network configuration from GitHub with caching support. * Uses the reusable cachedFetch utility. Falls back to metadata.aztec.network if the default URL fails. * * @param networkName - The network name to fetch config for * @param cacheDir - Optional cache directory for storing fetched config * @returns Remote configuration for the specified network, or undefined if network not found in config * @throws Error if both primary and fallback URLs fail to fetch */ export declare function getNetworkConfig(networkName: NetworkNames, cacheDir?: string): Promise; /** * Enriches environment variables with remote network configuration. * This function is called before node config initialization to set env vars * from the remote config. * * @param networkName - The network name to fetch remote config for * @throws Error if network config fetch fails (network errors, parse errors, etc.) * Does not throw if the network simply doesn't exist in the config - just returns without enriching */ export declare function enrichEnvironmentWithNetworkConfig(networkName: NetworkNames): Promise; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV0d29ya19jb25maWcuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25maWcvbmV0d29ya19jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLEtBQUssYUFBYSxFQUEwQixLQUFLLFlBQVksRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBWXpHOzs7Ozs7OztHQVFHO0FBQ0gsd0JBQXNCLGdCQUFnQixDQUNwQyxXQUFXLEVBQUUsWUFBWSxFQUN6QixRQUFRLENBQUMsRUFBRSxNQUFNLEdBQ2hCLE9BQU8sQ0FBQyxhQUFhLEdBQUcsU0FBUyxDQUFDLENBOEJwQztBQXNERDs7Ozs7Ozs7R0FRRztBQUNILHdCQUFzQixrQ0FBa0MsQ0FBQyxXQUFXLEVBQUUsWUFBWSxpQkFpQ2pGIn0=