import Service from '../Service'; import User from '../helpers/User'; declare class Auth extends Service { /** * * Will create the account and create a JWT and store it (login) * * @param email string * * @param password string * * @param profile object * * @return Promise */ CreateAccount: (email: string, password: string, profile?: object | undefined) => Promise; /** * * Will create JWT and store it if the user exists * * @param email string * * @param password string * * @return Promise */ loginWithEmailAndPassword: (email: string, password: string) => Promise; /** * * Will decode the current JWT and return it * * @return Promise */ getCurrentUser: () => Promise; /** * * Will sign out the user from its account * * @return Promise */ signOut: () => Promise; } export = Auth;