import { type HttpServer, type INestApplication, type INestMicroservice, type NestApplicationOptions, type Type } from '@nestjs/common'; import { type AbstractHttpAdapter, NestApplicationContext } from '@nestjs/core'; import { type NestMicroserviceOptions } from '@nestjs/common/internal'; import type { ApplicationConfig, NestContainer, GraphInspector } from '@nestjs/core'; import type { Module } from '@nestjs/core/internal'; /** * @publicApi */ export declare class TestingModule extends NestApplicationContext { private readonly applicationConfig; protected readonly graphInspector: GraphInspector; constructor(container: NestContainer, graphInspector: GraphInspector, contextModule: Module, applicationConfig: ApplicationConfig, scope?: Type[]); /** * Pre-load optional packages so that createNestApplication, * createNestMicroservice and createHttpAdapter can stay synchronous. * Called from TestingModuleBuilder.compile(). */ private preloadLazyPackages; private isHttpServer; createNestApplication(httpAdapter: HttpServer | AbstractHttpAdapter, options?: NestApplicationOptions): T; createNestApplication(options?: NestApplicationOptions): T; createNestMicroservice(options: NestMicroserviceOptions & T): INestMicroservice; /** * The `instrument` passed to `Test.createTestingModule()` has already decorated * the module's providers; applications and microservices created from the * module use it too, unless their own options set one. */ private withModuleInstrument; private createHttpAdapter; private applyLogger; private createAdapterProxy; }