/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-08-19. */ import { Request } from '../../http/request'; import { User } from '../user'; import { ILoginOAuth2Params, ILoginParams, ISetupAuthenticationParams, IUpdateCurrentUserParams } from './types'; export * from './types'; export declare class AuthAPI extends Request { /** * Log a user in by e-mail or username and password and return it. */ login(this: Request, params: ILoginParams): Promise | import("../../http/response").Response | import("../../http/response").Response>; /** * Log a user in via OAuth2. */ loginOAuth2(params: ILoginOAuth2Params): Promise | import("../../http/response").Response>; /** * Log the current user out. */ logout(): Promise | import("../../http/response").Response | import("../../http/response").Response>; /** * Get the profile of the current user. */ getCurrentUser(this: Request): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Create and connect first user in order to setup authentication. */ setupAuthentication(this: Request, params: ISetupAuthenticationParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Update the current user. */ updateCurrentUser(this: Request, params: IUpdateCurrentUserParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; }