1 | import { Observable } from 'rxjs';
|
2 | import { CallHandler, ExecutionContext, HttpServer, NestInterceptor } from '../../interfaces';
|
3 | export interface HttpAdapterHost<T extends HttpServer = any> {
|
4 | httpAdapter: T;
|
5 | }
|
6 | export declare class CacheInterceptor implements NestInterceptor {
|
7 | protected readonly cacheManager: any;
|
8 | protected readonly reflector: any;
|
9 | protected readonly httpAdapterHost: HttpAdapterHost;
|
10 | constructor(cacheManager: any, reflector: any);
|
11 | intercept(context: ExecutionContext, next: CallHandler): Promise<Observable<any>>;
|
12 | trackBy(context: ExecutionContext): string | undefined;
|
13 | }
|