import "little-state-machine";

import { PlanType } from "./features/SignupForm/components/PlanSelector/components/Plan/Plan";
import { PersonalDetailsFormValues } from "./features/SignupForm/steps/PersonalDetails/PersonalDetails";

declare module "little-state-machine" {
  interface GlobalState {
    affiliateId: string | number | null;
    country: string;
    step: number;
    userInfo: UserInfoFormValues;
    personalDetails: PersonalDetailsFormValues;
    plan: PlanType | null;
    stripe: {
      clientSecret: string | undefined;
      customerId: string | undefined;
      subscriptionId?: string | undefined;
    };
    coupon?: string | undefined;
    detailCoupon?: any;
    result?: any;
  }
}
