import { RequestHandler } from 'express' ; import { AuthRequest } from 'src/models/authRequest' ; export interface AuthService < T > { authenticate ( ) : RequestHandler ; login ( loginRequest ) : Promise < T > ; logout ( session ? ) : Promise < void > ; getCurrentUser ( session ? ) : Promise < any > ; }