import { TransportInterface, AccountsClient } from '@accounts/client'; import { User, LoginResult, CreateUser, ImpersonationUserIdentity, ImpersonationResult, CreateUserResult } from '@accounts/types'; export interface OptionsType { apiHost: string; rootPath: string; } export declare class RestClient implements TransportInterface { client: AccountsClient; private options; constructor(options: OptionsType); fetch(route: string, args: object, customHeaders?: object): Promise; authFetch(route: string, args: object, customHeaders?: object): Promise; authenticateWithService(provider: string, data: any, customHeaders?: object): Promise; loginWithService(provider: string, data: any, customHeaders?: object): Promise; impersonate(accessToken: string, impersonated: ImpersonationUserIdentity, customHeaders?: object): Promise; refreshTokens(accessToken: string, refreshToken: string, customHeaders?: object): Promise; logout(customHeaders?: object): Promise; getUser(customHeaders?: object): Promise; createUser(user: CreateUser, customHeaders?: object): Promise; resetPassword(token: string, newPassword: string, customHeaders?: object): Promise; verifyEmail(token: string, customHeaders?: object): Promise; sendVerificationEmail(email: string, customHeaders?: object): Promise; sendResetPasswordEmail(email: string, customHeaders?: object): Promise; addEmail(newEmail: string, customHeaders?: object): Promise; changePassword(oldPassword: string, newPassword: string, customHeaders?: object): Promise; getTwoFactorSecret(customHeaders?: object): Promise; twoFactorSet(secret: any, code: string, customHeaders?: object): Promise; twoFactorUnset(code: string, customHeaders?: object): Promise; requestMagicLinkEmail(email: string, customHeaders?: object): Promise; } export default RestClient;