1 | import { DynamicModule } from '@nestjs/common';
|
2 | import { ConfigFactory, ConfigModuleOptions } from './interfaces';
|
3 | /**
|
4 | * @publicApi
|
5 | */
|
6 | export declare class ConfigModule {
|
7 | /**
|
8 | * This promise resolves when "dotenv" completes loading environment variables.
|
9 | * When "ignoreEnvFile" is set to true, then it will resolve immediately after the
|
10 | * "ConfigModule#forRoot" method is called.
|
11 | */
|
12 | static get envVariablesLoaded(): Promise<void>;
|
13 | private static environmentVariablesLoadedSignal;
|
14 | private static readonly _envVariablesLoaded;
|
15 | /**
|
16 | * Loads process environment variables depending on the "ignoreEnvFile" flag and "envFilePath" value.
|
17 | * Also, registers custom configurations globally.
|
18 | * @param options
|
19 | */
|
20 | static forRoot(options?: ConfigModuleOptions): Promise<DynamicModule>;
|
21 | /**
|
22 | * Registers configuration object (partial registration).
|
23 | * @param config
|
24 | */
|
25 | static forFeature(config: ConfigFactory): DynamicModule;
|
26 | private static loadEnvFile;
|
27 | private static assignVariablesToProcess;
|
28 | private static mergePartial;
|
29 | private static getSchemaValidationOptions;
|
30 | }
|