import type { ArgumentsHost } from '@nestjs/common'; import type { ITransport } from '../types'; /** * This class is used to detect current protocol (transport type). * Mostly used in global enhancers to decide: "to work of not to work" */ export declare class ProtocolDetector { private transports; constructor(transports: ITransport[]); /** * Detects transport's protocol by ArgumentHost (context) */ getProtocol(context: ArgumentsHost): string | undefined; /** * Checks that transport's protocol matches the provided one. * (just convenience method) */ matchProtocol(context: ArgumentsHost, protocol: string): boolean; private getTransport; }