import { Injector } from '@angular/core'; import { CustomFieldConfig, CustomFields, GetGlobalSettingsQuery, GetServerConfigQuery, OrderProcessState, PermissionDefinition } from '../common/generated-types'; import * as i0 from "@angular/core"; export declare function initializeServerConfigService(serverConfigService: ServerConfigService): () => Promise; /** * A service which fetches the config from the server upon initialization, and then provides that config * to the components which require it. */ export declare class ServerConfigService { private injector; private _serverConfig; customFieldsMap: Map; private get baseDataService(); constructor(injector: Injector); /** * Fetches the ServerConfig. Should be run as part of the app bootstrap process by attaching * to the Angular APP_INITIALIZER token. */ init(): () => Promise; /** * Fetch the ServerConfig. Should be run on app init (in case user is already logged in) and on successful login. */ getServerConfig(): Promise; getAvailableLanguages(): import("rxjs").Observable; /** * When any of the GlobalSettings are modified, this method should be called to update the Apollo cache. */ refreshGlobalSettings(): import("rxjs").Observable; /** * Retrieves the custom field configs for the given entity type. */ getCustomFieldsFor(type: Exclude | string): CustomFieldConfig[]; getOrderProcessStates(): OrderProcessState[]; getPermittedAssetTypes(): string[]; getPermissionDefinitions(): PermissionDefinition[]; get serverConfig(): GetServerConfigQuery['globalSettings']['serverConfig']; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }