import Class from './class'; import { ICryptoAdapter } from '../types/crypto'; import { CredentialsType } from '../types/auth'; export default class User extends Class { static _crypto: ICryptoAdapter; static readonly className: string; static readonly usernameKey: string; static readonly emailKey: string; static readonly passwordKey: string; static readonly keys: Array; static readonly hidden: Array; static setCrypto(crypto: ICryptoAdapter): void; static verify({username, email, password}: CredentialsType): Promise; username: string; email: string; password: string; beforeSave(): Promise; }