import { ConfigModule } from '..'; import { ConfigFactory } from '../interfaces'; import { ConfigObject } from '../types'; /** * @publicApi */ export interface ConfigFactoryKeyHost { KEY: string | symbol; asProvider(): { imports: [ReturnType]; useFactory: (config: T) => T; inject: [string | symbol]; }; } /** * @publicApi * * Registers the configuration object behind a specified token. */ export declare function registerAs>(token: string | symbol, configFactory: TFactory): TFactory & ConfigFactoryKeyHost>;