1 | import { Controller } from '@nestjs/common/interfaces/controllers/controller.interface';
|
2 | import { MetadataScanner } from '@nestjs/core/metadata-scanner';
|
3 | import { Transport } from './enums';
|
4 | import { ClientOptions, PatternMetadata } from './interfaces';
|
5 | export interface ClientProperties {
|
6 | property: string;
|
7 | metadata: ClientOptions;
|
8 | }
|
9 | export interface EventOrMessageListenerDefinition {
|
10 | patterns: PatternMetadata[];
|
11 | methodKey: string;
|
12 | isEventHandler: boolean;
|
13 | targetCallback: (...args: any[]) => any;
|
14 | transport?: Transport;
|
15 | extras?: Record<string, any>;
|
16 | }
|
17 | export interface MessageRequestProperties {
|
18 | requestPattern: PatternMetadata;
|
19 | replyPattern: PatternMetadata;
|
20 | }
|
21 | export declare class ListenerMetadataExplorer {
|
22 | private readonly metadataScanner;
|
23 | constructor(metadataScanner: MetadataScanner);
|
24 | explore(instance: Controller): EventOrMessageListenerDefinition[];
|
25 | exploreMethodMetadata(instancePrototype: object, methodKey: string): EventOrMessageListenerDefinition;
|
26 | scanForClientHooks(instance: Controller): IterableIterator<ClientProperties>;
|
27 | }
|