import { CancelToken } from "axios"; import { PortalAuthentication } from "../models/PortalAuthentication"; import { RequiredDeep } from "../models/RequiredDeep"; declare class Auth { constructor(); /** * @description this workflow is most appropriate for client apps where user is a human, ie a registered user * * @param username of the user logging in * @param password of the user logging in * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Login(username: string, password: string, recaptchaToken?: string, requestOptions?: { cancelToken?: CancelToken; requestType?: string; }): Promise>; /** * @description this workflow is most appropriate for client apps where user is a human, ie a registered user * * @param refreshToken of the application * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ Logout(refreshToken: string, requestOptions?: { cancelToken?: CancelToken; requestType?: string; }): Promise>; /** * @description extend your users' session by getting a new access token with a refresh token. refresh tokens must be enabled in the dashboard * * @param refreshToken of the application * @param requestOptions.cancelToken Provide an [axios cancelToken](https://github.com/axios/axios#cancellation) that can be used to cancel the request. * @param requestOptions.requestType Provide a value that can be used to identify the type of request. Useful for error logs. */ RefreshToken(refreshToken: string, requestOptions?: { cancelToken?: CancelToken; requestType?: string; }): Promise>; } declare const _default: Auth; export default _default;