/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// import { AccessPayload } from "../../../auth/types/auth-tokens.js"; export declare const storeTestSetup: () => Promise<{ api(): Promise<{ circuit: { stripe: import("stripe").Stripe; stripeLiaison: { accounts: { create(params: import("stripe").Stripe.AccountCreateParams): Promise>; retrieve(id: string): Promise>; createLoginLink(id: string): Promise>; }; accountLinks: { create(params: import("stripe").Stripe.AccountLinkCreateParams): Promise>; }; account(stripeAccount: string): { billingPortal: { create(params: import("stripe").Stripe.BillingPortal.SessionCreateParams): Promise>; }; customers: { create(params: import("stripe").Stripe.CustomerCreateParams): Promise>; retrieve(id: string): Promise>; update(id: string, params: import("stripe").Stripe.CustomerUpdateParams): Promise>; listPaymentMethods(customer: string, params: import("stripe").Stripe.CustomerListPaymentMethodsParams): Promise>>; }; products: { create(params: import("stripe").Stripe.ProductCreateParams): Promise>; retrieve(id: string): Promise>; update(id: string, params: import("stripe").Stripe.ProductUpdateParams): Promise>; }; prices: { list(params: import("stripe").Stripe.PriceListParams): Promise>>; create(params: import("stripe").Stripe.PriceCreateParams): Promise>; retrieve(id: string): Promise>; update(id: string, params: import("stripe").Stripe.PriceUpdateParams): Promise>; }; paymentMethods: { create(params: import("stripe").Stripe.PaymentMethodCreateParams): Promise>; retrieve(id: string): Promise>; detach(id: string): Promise>; }; setupIntents: { retrieve(id: string): Promise>; create(params: import("stripe").Stripe.SetupIntentCreateParams): Promise>; }; paymentIntents: { retrieve(id: string): Promise>; create(params: import("stripe").Stripe.PaymentIntentCreateParams): Promise>; }; subscriptions: { list(params: import("stripe").Stripe.SubscriptionListParams): Promise>>; create(params: import("stripe").Stripe.SubscriptionCreateParams): Promise>; retrieve(id: string): Promise>; update(id: string, params: import("stripe").Stripe.SubscriptionUpdateParams): Promise>; }; subscriptionItems: { del(id: string, params: import("stripe").Stripe.SubscriptionItemDeleteParams): Promise>; }; checkout: { sessions: { create(params: import("stripe").Stripe.Checkout.SessionCreateParams): Promise>; }; }; }; }; stripeWebhooks: { "account.updated": (event: import("stripe").Stripe.Event) => Promise; "customer.subscription.updated": (event: import("stripe").Stripe.Event) => Promise; "invoice.paid": (event: import("stripe").Stripe.Event) => Promise; }; mockStripeOperations: { linkStripeAccount(stripeAccountId: string): Promise; linkStripeAccountThatIsIncomplete(stripeAccountId: string): Promise; checkoutSubscriptionTier(stripeAccountId: string, stripeSessionId: string): Promise; createNewDefaultPaymentMethod({ stripeAccountId, customer, isFailing, }: { stripeAccountId: string; customer: string; isFailing: boolean; }): Promise>; removeAllPaymentMethods(customer: string): Promise; wipeAll: { customers(): Promise; products(): Promise; }; }; }; roles: { merchant: string[]; clerk: string[]; customer: any[]; }; client: (privileges: string[]) => Promise<{ browserTab: () => Promise<{ store: { updateAccessOp(op: import("../../../../framework/ops.js").Op): Promise; load: () => Promise; initialize: () => Promise; refresh: () => Promise; subscriptions: { addPlan(options: { planLabel: string; tier: import("../../backend/services/subscriptions/types/drafts.js").SubscriptionTierDraft; }): Promise; addTier(options: { label: string; planId: string; pricing: import("../../backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; editPlan({ planId, label, archived }: { planId: string; label: string; archived: boolean; }): Promise; editTier({ planId, tierId, label, active, pricing }: { planId: string; tierId: string; label: string; active: boolean; pricing: import("../../backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; purchase({ stripePriceId, showLoadingSpinner }: { stripePriceId: string; showLoadingSpinner?: boolean; }): Promise; cancel(tierId: string): Promise; uncancel(tierId: string): Promise; load: () => Promise; }; billing: { load: () => Promise; allowance: { readonly manageStore: boolean; readonly connectStripeAccount: boolean; readonly giveAwayFreebies: boolean; }; customerPortal: () => Promise; }; connect: { load: () => Promise; readonly isOnboardingNeeded: boolean; readonly isAllowedToOnboard: boolean; stripeAccountOnboarding(): Promise; stripeLogin(): Promise; pause(): Promise; resume(): Promise; }; snap: import("@chasemoskal/snapstate").Snapstate<{ user: { accessOp: import("../../../../framework/ops.js").Op; }; stripeConnect: { connectStatusOp: import("../../../../framework/ops.js").Op; connectDetailsOp: import("../../../../framework/ops.js").Op; }; subscriptions: { subscriptionPlansOp: import("../../../../framework/ops.js").Op; mySubscriptionDetailsOp: import("../../../../framework/ops.js").Op; }; billing: { paymentMethodOp: import("../../../../framework/ops.js").Op; }; }>; state: { user: { accessOp: import("../../../../framework/ops.js").Op; }; stripeConnect: { connectStatusOp: import("../../../../framework/ops.js").Op; connectDetailsOp: import("../../../../framework/ops.js").Op; }; subscriptions: { subscriptionPlansOp: import("../../../../framework/ops.js").Op; mySubscriptionDetailsOp: import("../../../../framework/ops.js").Op; }; billing: { paymentMethodOp: import("../../../../framework/ops.js").Op; }; }; allowance: { readonly manageStore: boolean; readonly connectStripeAccount: boolean; readonly giveAwayFreebies: boolean; }; get: { is: { readonly storeActive: boolean; readonly userLoggedIn: boolean; }; user: { readonly access: AccessPayload; }; connect: { readonly status: import("../../isomorphic/concepts.js").StripeConnectStatus; readonly details: import("../../isomorphic/concepts.js").StripeConnectDetails; }; subscriptions: { readonly plans: import("../../isomorphic/concepts.js").SubscriptionPlan[]; readonly mySubscriptionDetails: import("../../isomorphic/concepts.js").SubscriptionDetails[]; }; billing: { readonly paymentMethod: import("../../isomorphic/concepts.js").PaymentMethod; }; }; }; rig: import("./mock-rig.js").MockStoreRig; login: (newPrivileges: string[], userId?: string) => Promise; logout: () => Promise; }>; }>; }>; }>;