import * as Ro from './ro-interfaces'; import { HttpClient } from '@angular/common/http'; export declare enum ConfigState { pending = 0, loaded = 1, failed = 2, } export interface IAppConfig { authenticate: boolean; authClientId?: string; authDomain?: string; appPath: string; applicationName: string; logoffUrl: string; postLogoffUrl: string; defaultPageSize: number; listCacheSize: number; shortCutMarker: string; urlShortCuts: string[]; keySeparator: string; objectColor: string; linkColor: string; autoLoadDirty: boolean; showDirtyFlag: boolean; clearCacheOnChange: boolean; defaultLocale: string; httpCacheDepth: number; transientCacheDepth: number; recentCacheDepth: number; doUrlValidation: boolean; leftClickHomeAlwaysGoesToSinglePane: boolean; logLevel: 'error' | 'warn' | 'info' | 'debug' | 'none'; dateInputFormat: string; colors?: { typeMap?: { [index: string]: number; }; regexArray?: { regex: RegExp; color: number; }[]; subtypeMap?: { [index: string]: number; }; default?: number; }; masks?: { currencyMasks?: { [index: string]: { format: Ro.FormatType; symbol?: string; digits?: string; locale?: string; }; }; dateMasks?: { [index: string]: { format: Ro.FormatType; mask: string; tz?: string; locale?: string; }; }; numberMasks?: { [index: string]: { format: Ro.FormatType; digits?: string; locale?: string; }; }; }; } export declare function configFactory(config: ConfigService): () => Promise; export declare function localeFactory(config: ConfigService): string; export declare class ConfigService { private readonly http; private appConfig; constructor(http: HttpClient); loadingStatus: ConfigState; config: IAppConfig; getAppPath(appPath: string): string; checkAppPath(): void; load(): Promise; }