import type { RequestHandler } from 'express'; import type { Gate } from '../authorization/Gate.js'; /** * Authorizes the current user against a gate ability (and optional route parameters). */ export declare class AuthorizeMiddleware { private readonly gate; /** * @param gate - Authorization gate. */ constructor(gate: Gate); /** * @param ability - Registered ability / policy method mapping. * @param modelParamKeys - Route parameter names passed as gate arguments after the user. * @returns Express middleware. */ handle(ability: string, ...modelParamKeys: string[]): RequestHandler; } //# sourceMappingURL=AuthorizeMiddleware.d.ts.map