1 | import { HttpServer, RouteInfo, Type } from '@nestjs/common/interfaces';
|
2 | import { ExcludeRouteMetadata } from '../router/interfaces/exclude-route-metadata.interface';
|
3 | export declare const mapToExcludeRoute: (routes: (string | RouteInfo)[]) => ExcludeRouteMetadata[];
|
4 | export declare const filterMiddleware: <T extends Function | Type<any> = any>(middleware: T[], routes: RouteInfo[], httpAdapter: HttpServer) => Type<any>[];
|
5 | export declare const mapToClass: <T extends Function | Type<any>>(middleware: T, excludedRoutes: ExcludeRouteMetadata[], httpAdapter: HttpServer) => Type<any>;
|
6 | export declare function isMiddlewareClass(middleware: any): middleware is Type<any>;
|
7 | export declare function assignToken(metatype: Type<any>, token?: string): Type<any>;
|
8 | export declare function isMiddlewareRouteExcluded(req: Record<string, any>, excludedRoutes: ExcludeRouteMetadata[], httpAdapter: HttpServer): boolean;
|