import type { RBACInstance } from '../types'; import { BaseMiddlewareOptions } from './types'; import { NestExecutionContext } from './nest.types'; import type { NestNextFunction, NestResponse } from './nest.types'; export interface NestOptions

extends BaseMiddlewareOptions

{ getRole?: (req: NestExecutionContext) => string; getParams?: (req: NestExecutionContext) => P; onDenied?: (req: NestExecutionContext, res: NestResponse, next: NestNextFunction) => void; } export declare const createNestMiddleware:

(rbac: RBACInstance

) => (operation: string | RegExp, options?: NestOptions

) => (req: NestExecutionContext, res: NestResponse, next: NestNextFunction) => Promise; export default createNestMiddleware;