import { IActivateAccount, IGetActivateAccountStrategyResponse } from '@frontegg/rest-api'; import { WithStatus } from '../../interfaces'; import { CustomEventsOptions } from '../interfaces'; export declare enum ActivateAccountStep { 'activating' = "activating", 'success' = "success", 'resend' = "resend", 'activatingForm' = "activatingForm" } export interface ActivateAccountState { loading: boolean; submitting: boolean; error?: any; step: ActivateAccountStep; resentEmail: boolean; activationStrategy: ActivateAccountStrategyState; } export type IPreActivateAccount = { userId: string; token: string; }; export interface IActivateAccountPayload extends IActivateAccount { events?: CustomEventsOptions; } export interface IActivateAccountWithOTCPayload extends IActivateAccountPayload { code: string; } export type ActivateAccountStrategyState = WithStatus & { strategy?: IGetActivateAccountStrategyResponse; };