import { Request, Response, NextFunction } from "express"; import { Student } from "../models/Student"; import { Teacher } from "../models/Teacher"; declare global { namespace Express { interface Request { teacher?: Teacher; student?: Student; } } } /** * Middleware to authenticate students * * Student tokens should contain: * - studentId: The student's ID (changed from id for clarity) */ export declare function authenticateStudent(req: Request, res: Response, next: NextFunction): Promise; /** * Middleware to authenticate teachers * * Teacher tokens should contain: * - teacherId: The teacher's ID */ export declare function authenticateTeacher(req: Request, res: Response, next: NextFunction): Promise;