import type { RBACInstance } from '../types'; type FastifyRequest = any; type FastifyReply = any; export interface FastifyOptions

{ getRole?: (req: FastifyRequest) => string; getParams?: (req: FastifyRequest) => P; onDenied?: (req: FastifyRequest, reply: FastifyReply) => void; } export declare const createFastifyMiddleware:

(rbac: RBACInstance

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

) => (req: FastifyRequest, reply: FastifyReply) => Promise; export default createFastifyMiddleware;