1 | import { ConfigModule } from '..';
|
2 | import { ConfigFactory } from '../interfaces';
|
3 | import { ConfigObject } from '../types';
|
4 | export interface ConfigFactoryKeyHost<T = unknown> {
|
5 | KEY: string;
|
6 | asProvider(): {
|
7 | imports: [ReturnType<typeof ConfigModule.forFeature>];
|
8 | useFactory: (config: T) => T;
|
9 | inject: [string];
|
10 | };
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 | export declare function registerAs<TConfig extends ConfigObject, TFactory extends ConfigFactory = ConfigFactory<TConfig>>(token: string, configFactory: TFactory): TFactory & ConfigFactoryKeyHost<ReturnType<TFactory>>;
|