UNPKG

1.36 kBTypeScriptView Raw
1import { Controller } from '@nestjs/common/interfaces/controllers/controller.interface';
2import { NestApplicationContextOptions } from '@nestjs/common/interfaces/nest-application-context-options.interface';
3import { ApplicationConfig } from '@nestjs/core/application-config';
4import { NestContainer } from '@nestjs/core/injector/container';
5import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
6import { GraphInspector } from '@nestjs/core/inspector/graph-inspector';
7import { CustomTransportStrategy } from './interfaces';
8import { Server } from './server/server';
9export declare class MicroservicesModule<TAppOptions extends NestApplicationContextOptions = NestApplicationContextOptions> {
10 private readonly clientsContainer;
11 private listenersController;
12 private appOptions;
13 register(container: NestContainer, graphInspector: GraphInspector, config: ApplicationConfig, options: TAppOptions): void;
14 setupListeners(container: NestContainer, server: Server & CustomTransportStrategy): void;
15 setupClients(container: NestContainer): void;
16 bindListeners(controllers: Map<string | symbol | Function, InstanceWrapper<Controller>>, server: Server & CustomTransportStrategy, moduleName: string): void;
17 bindClients(items: Map<string | symbol | Function, InstanceWrapper<unknown>>): void;
18 close(): Promise<void>;
19}