import { AceBase } from "acebase"; export default class Auth { protected acebase: AceBase; enabled: boolean; protected defaultRole: string; constructor(acebase: AceBase); SetDefaultRole(role: string): void; Login(usernameOrEmail: string, password: string): Promise<{ client_key: string; token: string; data: any; }>; AuthenticateWS(token: string): Promise<{ key: string; token: string; }>; VerifyWSKey(): Promise; Authenticate(token: string): Promise<{ data: any; client_key: string; token: string; }>; static UserList(): void; GetUser(token: string): Promise; Logout(token: any): Promise; isValidEmail(email: string): RegExpMatchArray; Register(credentials: any): Promise<{ data: any; token: string; client_key: string; }>; } export interface Account { key?: string; username?: string; email?: string; role?: string; }