import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class Auth { /** * Attempts to authenticate a user using their email address. * * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin * * @param email The email address of the user * @param password The password of the user * * @returns A promise */ static loginWithEmail(email: string, password: string): AxiosPromise>; /** * Attempts to authenticate a user using their username. * * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin * * @param username The username of the user * @param password The password of the user * * @returns A promise */ static loginWithUsername(username: string, password: string): AxiosPromise>; /** * Attempts to register a user. * * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/oneTimeLoginToken * * @param data The data the user can register with. * * @returns A promise */ static register(data: object): AxiosPromise>; /** * Request an authentication token to faciliate a one time login of an user. * * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/oneTimeLoginToken * * @returns promise */ static oneTimeLogin(token: string): AxiosPromise>; /** * Execute the password reset process using a user's email address. * * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authForgotPassword * * @param email The email address * * @returns promise */ static forgotPasswordWithEmail(email: string): AxiosPromise>; /** * Resets the users password after the forgot password has been executed. * * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authResetPassword * * @param data The parameters required to reset the password. * * @returns promise */ static resetPassword(data: object): AxiosPromise>; } export default Auth;