/**
 * Ambient augmentations of Express's Request.
 * `req.cookies` comes from @types/cookie-parser once that package is installed.
 */
import 'express';

declare global {
  namespace Express {
    interface Request {
      /** Correlation id for logs and the x-request-id response header. */
      id: string;
      /** Set by the `authenticate` middleware on protected /admin/* routes. */
      admin?: { id: string; role: 'superadmin' | 'admin' };
    }
  }
}

export {};
