import 'reflect-metadata'; import { Controller, Injectable } from '../interfaces'; import { Metatype } from '../interfaces/metatype.interface'; import { NestModuleMetatype } from '../interfaces/modules/module-metatype.interface'; import { Module } from './module'; import { ModulesContainer } from './modules-container'; import { DynamicModule } from '..'; export declare class NestContainer { private readonly globalModules; private readonly modules; private readonly dynamicModulesMetadata; private readonly moduleTokenFactory; addModule(metatype: NestModuleMetatype | DynamicModule, scope: NestModuleMetatype[]): void; extractMetadata(metatype: NestModuleMetatype | DynamicModule): { type: NestModuleMetatype; dynamicMetadata?: Partial | undefined; }; isDynamicModule(module: NestModuleMetatype | DynamicModule): module is DynamicModule; addDynamicMetadata(token: string, dynamicModuleMetadata: Partial): any; isGlobalModule(metatype: NestModuleMetatype): boolean; addGlobalModule(module: Module): void; getModules(): ModulesContainer; addRelatedModule(relatedModule: NestModuleMetatype | DynamicModule, token: string): void; addComponent(component: Metatype, token: string): void; addInjectable(injectable: Metatype, token: string): void; addExportedComponent(exportedComponent: Metatype, token: string): void; addController(controller: Metatype, token: string): void; clear(): void; replace(toReplace: any, options: any & { scope: any[] | null; }): void; bindGlobalScope(): void; bindGlobalsToRelatedModules(module: Module): void; bindGlobalModuleToModule(module: Module, globalModule: Module): any; getDynamicMetadataByToken(token: string, metadataKey: keyof DynamicModule): any[]; } export interface InstanceWrapper { name: any; metatype: Metatype; instance: T; isResolved: boolean; isPending?: boolean; done$?: Promise; inject?: Metatype[]; isNotMetatype?: boolean; forwardRef?: boolean; async?: boolean; }