import { DEVICE_USER_IDENTITY_ASSURANCE_LEVEL } from '..'; export declare class CommonConfigDto { applicationName: string; mobileApplicationName: string; faviconUrl: string; loadingColor: string; /** * Primarily for sign-up */ defaultCountry: string; collectUserSnapshot: boolean; registrationTerminalLevel: DEVICE_USER_IDENTITY_ASSURANCE_LEVEL; } export declare class FrontendConfig { port: number; modules: any[]; sentryDsn: string; } export declare class BackendConfigDto { port: number; interface: string; host: string; database: any; redis: any; oidc: any; s3: any; push: any; email: any[]; ocr: any; ip2location: any; ethereum: any; sentryDsn: string; serverSetupSecret: string; environment: string; } /** * System configuration * - usually from /etc/px-device-identity/device.yml */ export declare class SystemConfigDto { deviceId: string; clientId: string; authServerUrl: string; domain: string; } /** * Application config * - usually from /etc/px-server-applications/.yml */ export declare class ApplicationConfigDto { common: CommonConfigDto; backend: BackendConfigDto; frontend?: FrontendConfig; } /** * Resulting config */ export declare class ConfigDto { systemConfig?: SystemConfigDto; applicationConfig: ApplicationConfigDto; } /** * Get config for client server (frontend and backend) * @param loadEnvironment: bool; whether to load variables from ENV * @param systemConfig: yml file contents * @param applicationConfig: yml file contents * @param name: name of the config file (for ex. vhh-server) * @returns */ export declare function getClientConfig(loadEnvironment: boolean, systemConfig?: any, applicationConfig?: any, name?: string): ConfigDto; /** * Get config for CM * @param loadEnvironment: bool; whether to load variables from ENV * @param applicationConfig: yml file contents * @returns */ export declare function getCMConfig(loadEnvironment: boolean, applicationConfig?: any): ConfigDto; /** * Get system config file path * - Overwrite with process.env.SYSTEM_CONFIG_PATH * @returns */ export declare function systemConfigPath(): string; /** * Get application config file path * - Overwrite with process.env.APPLICATION_CONFIG_PATH * @param name: name of the config file (for ex. vhh-server) * @returns */ export declare function applicationConfigPath(name: string): string;