import { _IUserConfig } from "../config/IConfig"; interface IAuth { validatePassword: (password: string) => boolean; hashPassword: (passowrd: string) => string; validateToken: (token: string) => boolean; getAuthKey: () => string; findUser: (username: string) => Promise; findById: (id: number) => Promise; signToken: (refreshToken: string) => string; getRefreshToken: () => string; findByAuthKey: (authkey: string) => Promise; getConfig: () => _IUserConfig; } export default IAuth;