import { DynamicModule, Provider } from '@nestjs/common'; import { EnhancerSubtype } from '@nestjs/common/constants'; import { Injectable, Type } from '@nestjs/common/interfaces'; import { ApplicationConfig } from '../application-config'; import { SerializedGraph } from '../inspector/serialized-graph'; import { ModuleCompiler } from './compiler'; import { ContextId } from './instance-wrapper'; import { Module } from './module'; import { ModuleTokenFactory } from './module-token-factory'; import { ModulesContainer } from './modules-container'; type ModuleMetatype = Type | DynamicModule | Promise; type ModuleScope = Type[]; export declare class NestContainer { private readonly _applicationConfig; private readonly globalModules; private readonly moduleTokenFactory; private readonly moduleCompiler; private readonly modules; private readonly dynamicModulesMetadata; private readonly internalProvidersStorage; private readonly _serializedGraph; private internalCoreModule; constructor(_applicationConfig?: ApplicationConfig); get serializedGraph(): SerializedGraph; get applicationConfig(): ApplicationConfig | undefined; setHttpAdapter(httpAdapter: any): void; getHttpAdapterRef(): import("..").AbstractHttpAdapter; getHttpAdapterHostRef(): import("..").HttpAdapterHost>; addModule(metatype: ModuleMetatype, scope: ModuleScope): Promise<{ moduleRef: Module; inserted: boolean; } | undefined>; replaceModule(metatypeToReplace: ModuleMetatype, newMetatype: ModuleMetatype, scope: ModuleScope): Promise<{ moduleRef: Module; inserted: boolean; } | undefined>; private setModule; addDynamicMetadata(token: string, dynamicModuleMetadata: Partial, scope: Type[]): Promise; addDynamicModules(modules: any[], scope: Type[]): Promise; isGlobalModule(metatype: Type, dynamicMetadata?: Partial): boolean; addGlobalModule(module: Module): void; getModules(): ModulesContainer; getModuleCompiler(): ModuleCompiler; getModuleByKey(moduleKey: string): Module; getInternalCoreModuleRef(): Module | undefined; addImport(relatedModule: Type | DynamicModule, token: string): Promise; addProvider(provider: Provider, token: string, enhancerSubtype?: EnhancerSubtype): string | symbol | Function; addInjectable(injectable: Provider, token: string, enhancerSubtype: EnhancerSubtype, host?: Type): string | symbol | Function | import("./instance-wrapper").InstanceWrapper; addExportedProvider(provider: Type, token: string): void; addController(controller: Type, token: string): void; clear(): void; replace(toReplace: any, options: any & { scope: any[] | null; }): void; bindGlobalScope(): void; bindGlobalsToImports(moduleRef: Module): void; bindGlobalModuleToModule(target: Module, globalModule: Module): void; getDynamicMetadataByToken(token: string): Partial; getDynamicMetadataByToken>(token: string, metadataKey: K): DynamicModule[K]; registerCoreModuleRef(moduleRef: Module): void; getModuleTokenFactory(): ModuleTokenFactory; registerRequestProvider(request: T, contextId: ContextId): void; private shouldInitOnPreview; } export {};