/** * Authentication and authorization middleware */ import { FastifyRequest, FastifyReply } from 'fastify'; export interface AuthUser { id: string; email?: string; did?: string; roles?: string[]; } declare module 'fastify' { interface FastifyRequest { user?: AuthUser; } } /** * JWT authentication middleware */ export declare function authenticateJWT(request: FastifyRequest, _reply: FastifyReply): Promise; /** * DID-based authentication middleware */ export declare function authenticateDID(request: FastifyRequest, _reply: FastifyReply): Promise; /** * Role-based access control middleware */ export declare function requireRole(...allowedRoles: string[]): (request: FastifyRequest, _reply: FastifyReply) => Promise; /** * OIDC token validation middleware */ export declare function authenticateOIDC(request: FastifyRequest, _reply: FastifyReply): Promise; //# sourceMappingURL=auth.d.ts.map