import { AuthUser } from './auth-user'; export interface UserDetailsService { findById(id: string | number): Promise; findByUsername(username: string): Promise; onLogin(user: T): Promise; onLogout(user: T): Promise; checkPassword(password: string, passwordHash: string): Promise; hashPassword(password: string): Promise; createAdmin(username: string, password: string): Promise; }