import { Request, Response, NextFunction } from 'express'; /** * @typedef {Object} UserPayload * @memberof common * @property {string} id - Id of logined user * @property {string} email - Email of logined user */ export interface CurrentUserPayload { id: string; name: string; email: string; } declare global { namespace Express { interface Request { currentUser?: CurrentUserPayload; } } } export declare const currentUser: (req: Request, res: Response, next: NextFunction) => void;