import { StoreServices } from "../../types.js"; import { StoreStateSystem } from "../../state.js"; import { StripePopups } from "../../../popups/types.js"; import { SubscriptionTier } from "../../../isomorphic/concepts.js"; import { SubscriptionTierDraft, SubscriptionPricingDraft } from "../../../backend/services/subscriptions/types/drafts.js"; export declare function makeSubscriptionsSubmodel({ services, stateSystem, stripePopups, reauthorize, }: { services: StoreServices; stateSystem: StoreStateSystem; stripePopups: StripePopups; reauthorize: () => Promise; }): { addPlan(options: { planLabel: string; tier: SubscriptionTierDraft; }): Promise; addTier(options: { label: string; planId: string; pricing: 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: SubscriptionPricingDraft; }): Promise; purchase({ stripePriceId, showLoadingSpinner }: { stripePriceId: string; showLoadingSpinner?: boolean; }): Promise; cancel(tierId: string): Promise; uncancel(tierId: string): Promise; load: () => Promise; };