import { NestInterceptor as INestInterceptor, ExecutionContext, CallHandler } from "@nestjs/common"; import { Observable } from "rxjs"; export interface NestInterceptorBeforeHanlder { (context: ExecutionContext): Promise; } export interface NestInterceptorResponseHandler { (response: any): Promise; } export declare class NestInterceptor implements INestInterceptor { private beforeHandlerList; private responseHandler; intercept(context: ExecutionContext, next: CallHandler): Promise>; addBeforeHandler(handler: NestInterceptorBeforeHanlder): this; setReponseHandler(handler: NestInterceptorResponseHandler): this; }