import { Await } from "dbmage"; import * as dbmage from "dbmage"; import * as renraku from "renraku"; import { makeStoreApi } from "../../backend/api.js"; import { mockStripeCircuit } from "../../backend/stripe/mock-stripe-circuit.js"; import { TestSession } from "./test-session.js"; export declare const testingBrowserTab: ({ appId, remote, circuit, session, generateId, }: { appId: string; session: TestSession; generateId: () => dbmage.Id; circuit: Await>; remote: renraku.ApiRemote>; }) => () => 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: import("../../../auth/types/auth-tokens.js").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; }>;