import { Request } from 'express';
import { ROLES } from '../common/config/constants.js';

export interface AuthenticatedRequest extends Request {
    user?: {
        id: string;
        email: string;
        fullName: string;
        roleCode: string;
        role?: typeof ROLES[keyof typeof ROLES];
    };
}

export interface AuthRequest extends AuthenticatedRequest {
    token?: string;
}
