import { HttpClient } from '@angular/common/http'; import * as i0 from "@angular/core"; /** * Global application config. * AppConfig needs to be initialized via APP_INITIALIZER. * For example, * providers: [ * { provide: APP_INITIALIZER, useFactory: (config: AppConfig) => () => config.load(), deps: [AppConfig], multi: true }, * ] */ export declare class AppConfig { private origin; private http; private static CONFIG_FOLDER; private static CONFIG_FILE_PROD; private static CONFIG_FILE_DEV; private fileName; private _config; private _isLoaded; constructor(origin: string, // Needed for SSR http: HttpClient); getConfigFile(): string; setConfigFile(_fileName: string): boolean; /** * Returns all config key-value pairs as a hash/object. */ get all(): { [key: string]: any; }; sub(key: string): Object; /** * Returns the config value for the given key. */ get(key: string): (any | null); getString(key: string, defaultVal?: string): (string | null); getNumber(key: string, defaultVal?: number): number; getBoolean(key: string, defaultVal?: boolean): boolean; /** * Loads the config asynchronously. */ load(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }