UNPKG

@pulzar/core

Version:

Next-generation Node.js framework for ultra-fast web applications with zero-reflection DI, GraphQL, WebSockets, events, and edge runtime support

10 lines 580 B
import type { FastifyRequest, FastifyReply, FastifyInstance } from "fastify"; export interface AuthGuardOptions { required?: boolean; roles?: string[]; permissions?: string[]; } export declare function createAuthGuard(options?: AuthGuardOptions): (request: FastifyRequest, reply: FastifyReply) => Promise<undefined>; export declare function registerAuthGuardPlugin(fastify: FastifyInstance, options?: AuthGuardOptions): void; export declare const authGuard: (request: FastifyRequest, reply: FastifyReply) => Promise<undefined>; //# sourceMappingURL=auth.guard.d.ts.map