UNPKG

cumulocity-cypress

Version:
28 lines (27 loc) 1.34 kB
import { C8yPactHttpControllerConfig } from "./index"; export declare function getEnvVar(name: string): string | undefined; export declare function getConfigFromArgs(): [ Partial<C8yPactHttpControllerConfig>, string | undefined ]; export declare function getConfigFromEnvironment(): Partial<C8yPactHttpControllerConfig>; export declare function getConfigFromArgsOrEnvironment(): [ Partial<C8yPactHttpControllerConfig>, string | undefined ]; export declare function validateConfig(config: Partial<C8yPactHttpControllerConfig>): void; /** * Default logger for the HTTP controller. It logs to the console with colors and simple format. * This needs to be passed to the config, so it must be created before applying the default config. */ export declare const defaultLogger: import("winston").Logger; /** * Default config object for the HTTP controller. It takes a configuration object and * adds required defaults, as for example the adapter, an error response record or the logger. * * This config can be overwritten by a config file, which is loaded by cosmiconfig. */ export declare const applyDefaultConfig: (config: Partial<C8yPactHttpControllerConfig>) => Partial<C8yPactHttpControllerConfig>; export declare const parseApps: (value: string | string[] | undefined) => { [key: string]: string; } | undefined;