/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// export declare const backendForNode: (config: import("./types/secret-config.js").SecretConfig) => Promise<{ rando: { random: () => number; compare: (a: string, b: string) => boolean; randomId: () => import("dbmage").Id; randomBuffer: (bytes: number) => ArrayBuffer; randomSample: (palette: T[]) => T; randomSequence: (length: number, palette: string[]) => string; }; api: { auth: { apps: { appService: import("renraku").Service; registerApp({ appDraft, ownerUserId }: { appDraft: import("../../features/auth/aspects/apps/types/app-draft.js").AppDraft; ownerUserId: string; }): Promise; }>; appEditService: import("renraku").Service; deleteApp({ appId: appIdString }: { appId: string; }): Promise; listAdmins({ appId: appIdString }: { appId: string; }): Promise; assignPlatformUserAsAdmin({ appId: appIdString, platformUserId: platformUserIdString }: { appId: string; platformUserId: string; }): Promise; assignAdmin({ appId: appIdString, email }: { appId: string; email: string; }): Promise; revokeAdmin({ appId: appIdString, userId: userIdString }: { appId: string; userId: string; }): Promise; }>; }; users: { greenService: import("renraku").Service; }>; loginService: import("renraku").Service; authenticateViaLoginToken({ loginToken }: { loginToken: string; }): Promise; refreshToken: Promise; }>>; }>; userService: import("renraku").Service; }>; personalService: import("renraku").Service; }>; }; permissions: { permissionsService: import("renraku").Service Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { fetchPermissions(): Promise; createRole({ label }: { label: string; }): Promise; deleteRole({ roleId: roleIdString }: { roleId: string; }): Promise; assignPrivilege({ roleId: roleIdString, privilegeId: privilegeIdString }: { roleId: string; privilegeId: string; }): Promise; unassignPrivilege({ roleId: roleIdString, privilegeId: privilegeIdString }: { roleId: string; privilegeId: string; }): Promise; createPrivilege({ label }: { label: string; }): Promise; deletePrivilege({ privilegeId: privilegeIdString }: { privilegeId: string; }): Promise; }>; }; }; administrative: { roleAssignmentService: import("renraku").Service Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { fetchPermissions(): Promise; searchUsers(options: { term: string; }): Promise<{ user: { userId: string; profile: import("../../features/auth/aspects/users/types/profile.js").Profile; roles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; stats: import("../../features/auth/aspects/users/types/user-stats.js").UserStats; }; roleIds: string[]; }[]>; assignRoleToUser(options: { roleId: string; userId: string; isPublic: boolean; timeframeEnd: number; timeframeStart: number; }): Promise; revokeRoleFromUser(options: { roleId: string; userId: string; }): Promise; }>; }; questions: { questionsReadingService: import("renraku").Service; }>; questionsPostingService: import("renraku").Service; archiveQuestion(inputs: { archive: boolean; questionId: string; }): Promise; likeQuestion(inputs: { like: boolean; questionId: string; }): Promise; reportQuestion(inputs: { report: boolean; questionId: string; }): Promise; }>; questionsAnsweringService: import("renraku").Service; archiveAnswer(inputs: { archive: boolean; answerId: string; }): Promise; likeAnswer(inputs: { like: boolean; answerId: string; }): Promise; reportAnswer(inputs: { report: boolean; answerId: string; }): Promise; }>; questionsModerationService: import("renraku").Service; fetchReportedQuestions(): Promise; }>; }; example: { exampleService: import("renraku").Service>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { exampleFunction({ something }: { something: string; }): Promise; }>; }; videos: { dacastService: import("renraku").Service; engine: { getUsersHaveRoles: ({ userIds, onlyGetPublicRoles }: { userIds: string[]; onlyGetPublicRoles: boolean; }) => Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; }, { getLink(): Promise; setLink(inputs: { apiKey: string; }): Promise; clearLink(): Promise; }>; contentService: import("renraku").Service Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ "view all videos": string; "moderate videos": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; }, { fetchModerationData(): Promise; writeView({ label, privileges, reference, }: { label: string; privileges: string[]; reference: import("../../features/videos/types/video-concepts.js").VideoHosting.DacastReference; }): Promise; deleteView({ label }: { label: string; }): Promise; getShows({ labels }: { labels: string[]; }): Promise; }>; }; notes: { notesService: import("renraku").Service; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { getNotesStats(): Promise; getNewNotes(pagination: import("../../features/notes/types/notes-concepts.js").Pagination): Promise; getOldNotes(pagination: import("../../features/notes/types/notes-concepts.js").Pagination): Promise; markAllNotesOld(): Promise; markNotesNewOrOld(input: { old: boolean; noteIds: string[]; }): Promise; }>; }; store: { connect: import("renraku").Service; generatePopupForStripeAccountOnboarding(): Promise<{ popupId: string; stripeAccountId: string; stripeAccountSetupLink: string; }>; generateStripeLoginLink(): Promise<{ stripeLoginLink: string; popupId: string; }>; pause(): Promise; resume(): Promise; loadConnectStatus(): Promise; }>; billing: import("renraku").Service>; }; 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { getDefaultPaymentMethod(): Promise; generateCustomerPortalLink(): Promise<{ popupId: string; customer: string; stripeSessionUrl: string; stripeAccountId: string; }>; }>; subscriptions: { listing: import("renraku").Service>; }; 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { listPlans(): Promise<{ archived: boolean; label: string; planId: string; time: number; tiers: import("../../features/store/isomorphic/concepts.js").SubscriptionTier[]; }[]>; }>; planning: import("renraku").Service; createTierForPlan({ planId, label, pricing }: { planId: string; label: string; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise<{ tierId: import("dbmage").Id; roleId: import("dbmage").Id; time: number; stripePriceId: string; }>; updatePlan({ planId: planIdString, label, archived }: { planId: string; label: string; archived: boolean; }): Promise; updateTier({ tierId: tierIdString, label, active, pricing }: { tierId: string; label: string; active: boolean; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; }; connectId: import("dbmage").Id; stripeAccountId: string; stripeLiaisonAccount: { 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { addPlan(inputs: { planLabel: string; tier: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionTierDraft; }): Promise; addTier(inputs: { label: string; planId: string; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; editPlan(inputs: { planId: string; label: string; archived: boolean; }): Promise; editTier(inputs: { label: string; tierId: string; active: boolean; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; }>; shopping: import("renraku").Service>; }; 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { fetchDetailsAboutMySubscriptions(): Promise; buy(stripePriceId: string): Promise<{ checkoutDetails?: import("../../features/store/backend/types/checkout-popup-details.js").CheckoutPopupDetails; }>; cancel(tierId: string): Promise; uncancel(tierId: string): Promise; }>; }; }; }; config: import("./types/secret-config.js").SecretConfig; emails: { sendEmail: import("../../features/auth/types/emails/send-email.js").SendEmail; enableEmails: () => void; disableEmails: () => void; sendLoginEmail: (details: import("../../features/auth/aspects/users/types/emails/login-email-details.js").LoginEmailDetails) => Promise; recallLatestLoginEmail: () => import("../../features/auth/aspects/users/types/emails/login-email-details.js").LoginEmailDetails; }; databaseRaw: import("dbmage").DatabaseLike<{ apps: import("dbmage").SchemaToTables<{ registrations: { appId: import("dbmage").Id; label: string; home: string; origins: string; archived: boolean; }; owners: { appId: import("dbmage").Id; userId: import("dbmage").Id; }; }>; auth: import("../../framework/api/types/unconstrained-tables.js").SchemaToUnconstrainedTables<{ users: { accounts: { userId: import("dbmage").Id; created: number; }; profiles: { userId: import("dbmage").Id; nickname: string; tagline: string; avatar: string; }; emails: { userId: import("dbmage").Id; email: string; }; latestLogins: { userId: import("dbmage").Id; time: number; }; }; permissions: { role: { roleId: import("dbmage").Id; label: string; time: number; hard: boolean; public: boolean; assignable: boolean; }; privilege: { privilegeId: import("dbmage").Id; label: string; hard: boolean; time: number; }; userHasRole: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }; roleHasPrivilege: { roleId: import("dbmage").Id; privilegeId: import("dbmage").Id; immutable: boolean; active: boolean; time: number; }; }; }>; notes: import("../../framework/api/types/unconstrained-tables.js").SchemaToUnconstrainedTables<{ notes: import("../../features/notes/types/notes-concepts.js").Database.NoteBase; questionDetails: import("../../features/notes/types/notes-concepts.js").Database.NoteDetails.Question; }>; store: import("../../framework/api/types/unconstrained-tables.js").SchemaToUnconstrainedTables; videos: import("../../framework/api/types/unconstrained-tables.js").SchemaToUnconstrainedTables<{ dacastAccountLinks: import("../../features/videos/types/dacast-link.js").DacastLinkRow; viewPrivileges: { label: string; privilegeId: import("dbmage").Id; }; viewDacast: { label: string; dacastId: string; type: import("../../features/videos/dacast/types/dacast-data.js").DacastData.ContentType; }; }>; example: import("../../framework/api/types/unconstrained-tables.js").SchemaToUnconstrainedTables<{ examplePosts: { exampleId: import("dbmage").Id; something: string; }; }>; questions: import("../../framework/api/types/unconstrained-tables.js").SchemaToUnconstrainedTables<{ questionPosts: { questionId: import("dbmage").Id; authorUserId: import("dbmage").Id; board: string; content: string; archive: boolean; timePosted: number; }; answerPosts: import("../../features/questions/api/types/questions-schema.js").AnswerPostRow; likes: { userId: import("dbmage").Id; itemId: import("dbmage").Id; }; reports: { userId: import("dbmage").Id; itemId: import("dbmage").Id; }; }>; }>; 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>; }; }; }; }; stripePopups: { connect({ popupId, stripeAccountId, stripeAccountSetupLink }: { popupId: string; stripeAccountId: string; stripeAccountSetupLink: string; }): Promise>; login({ popupId, stripeAccountId, stripeLoginLink }: { popupId: string; stripeAccountId: string; stripeLoginLink: string; }): Promise>; checkoutSubscription({ popupId, stripeSessionUrl, stripeSessionId, stripeAccountId }: { popupId: string; stripeSessionId: string; stripeAccountId: string; stripeSessionUrl: string; }): Promise>; openStoreCustomerPortal({ popupId, customer, stripeAccountId, stripeSessionUrl }: { popupId: string; customer: string; stripeAccountId: string; stripeSessionUrl: string; }): Promise>; }; platformAppId: string; prepareNotesDepositBox: (appId: import("dbmage").Id) => { sendNotes: (drafts: import("../../features/notes/types/notes-concepts.js").DraftForNote[]) => Promise<{ noteId: string; }[]>; sendNote: (draft: import("../../features/notes/types/notes-concepts.js").DraftForNote) => Promise<{ noteId: string; }>; }; mockBrowser: ({ appOrigin }: { appOrigin: string; }) => Promise<{ mockAppWindow: ({ appId }: { appId: string; }) => Promise<{ models: { exampleModel: { state: { accessOp: import("../../framework/ops.js").Op; }; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ accessOp: import("../../framework/ops.js").Op; }>) => () => void; updateAccessOp: (op: import("../../framework/ops.js").Op) => void; }; appsModel: { state: { active: boolean; appRecords: import("../../framework/ops.js").Op; addingNewApp: import("../../framework/ops.js").Op; }; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ active: boolean; appRecords: import("../../framework/ops.js").Op; addingNewApp: import("../../framework/ops.js").Op; }>) => () => void; appEditService: { updateApp({ appId: appIdString, appDraft }: { appId: string; appDraft: import("../../features/auth/aspects/apps/types/app-draft.js").AppDraft; }): Promise; deleteApp({ appId: appIdString }: { appId: string; }): Promise; listAdmins({ appId: appIdString }: { appId: string; }): Promise; assignPlatformUserAsAdmin({ appId: appIdString, platformUserId: platformUserIdString }: { appId: string; platformUserId: string; }): Promise; assignAdmin({ appId: appIdString, email }: { appId: string; email: string; }): Promise; revokeAdmin({ appId: appIdString, userId: userIdString }: { appId: string; userId: string; }): Promise; }; getApp: (appId: string) => import("../../features/auth/aspects/apps/types/app-display.js").AppDisplay; loadApps: () => Promise; deleteApp: (appId: string) => Promise; updateApp: (appId: string, appDraft: import("../../features/auth/aspects/apps/types/app-draft.js").AppDraft) => Promise; registerApp: (appDraft: import("../../features/auth/aspects/apps/types/app-draft.js").AppDraft) => Promise; updateAccessOp(op: import("../../framework/ops.js").Op): Promise; }; chatModel: { state: { accessOp: import("../../framework/ops.js").Op; connectionOp: import("../../framework/ops.js").Op; cache: { mutedUserIds: string[]; roomStats: import("../../features/chat/common/types/chat-concepts.js").ChatStats; rooms: { [key: string]: { status: import("../../features/chat/common/types/chat-concepts.js").ChatStatus; posts: import("../../features/chat/common/types/chat-concepts.js").ChatPost[]; }; }; }; }; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ accessOp: import("../../framework/ops.js").Op; connectionOp: import("../../framework/ops.js").Op; cache: { mutedUserIds: string[]; roomStats: import("../../features/chat/common/types/chat-concepts.js").ChatStats; rooms: { [key: string]: { status: import("../../features/chat/common/types/chat-concepts.js").ChatStatus; posts: import("../../features/chat/common/types/chat-concepts.js").ChatPost[]; }; }; }; }>) => () => void; subscribeToChange: (...listeners: (() => void | Promise)[]) => () => void; readonly allowance: { moderateAllChats: boolean; participateInAllChats: boolean; viewAllChats: boolean; banned: boolean; }; updateAccessOp(op: import("../../framework/ops.js").Op): Promise; session: (label: string) => Promise<{ dispose: () => void; room: { readonly posts: import("../../features/chat/common/types/chat-concepts.js").ChatPost[]; readonly status: import("../../features/chat/common/types/chat-concepts.js").ChatStatus; readonly muted: string[]; readonly weAreMuted: boolean; readonly weAreBanned: boolean; setRoomStatus(status: import("../../features/chat/common/types/chat-concepts.js").ChatStatus): void; post(draft: import("../../features/chat/common/types/chat-concepts.js").ChatDraft): void; remove(postIds: string[]): void; clear(): void; mute(userId: string): void; unmute(userId: string): void; unmuteAll(): void; }; }>; disconnect: () => Promise; reconnect: () => Promise; }; accessModel: { subscribe: (...listeners: ((accessOp: import("../../framework/ops.js").Op) => void | Promise)[]) => () => void; getAccessOp(): import("../../framework/ops.js").Op; getAccess(): import("../../features/auth/types/auth-tokens.js").AccessPayload; getValidAccess(): Promise; useExistingLogin(): Promise; sendLoginLink(email: string): Promise; login(loginToken: string): Promise; logout(): Promise; reauthorize(): Promise; }; videoModels: { dacastModel: { state: { accessOp: import("../../framework/ops.js").Op; linkedAccountOp: import("../../framework/ops.js").Op; }; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ accessOp: import("../../framework/ops.js").Op; linkedAccountOp: import("../../framework/ops.js").Op; }>) => () => void; onLinkChange: (listener: (context: import("../../features/videos/types/dacast-link.js").DacastLinkDisplay) => void) => () => void; updateAccessOp(op: import("../../framework/ops.js").Op): Promise; initialize(): Promise; readonly linkedAccount: import("../../features/videos/types/dacast-link.js").DacastLinkDisplay; linkAccount({ apiKey }: { apiKey: string; }): Promise; unlinkAccount(): Promise; }; contentModel: { state: { accessOp: import("../../framework/ops.js").Op; catalogOp: import("../../framework/ops.js").Op; viewsOp: import("../../framework/ops.js").Op; privilegesOp: import("../../framework/ops.js").Op; showsOp: import("../../framework/ops.js").Op; }; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ accessOp: import("../../framework/ops.js").Op; catalogOp: import("../../framework/ops.js").Op; viewsOp: import("../../framework/ops.js").Op; privilegesOp: import("../../framework/ops.js").Op; showsOp: import("../../framework/ops.js").Op; }>) => () => void; updateAccessOp(op: import("../../framework/ops.js").Op): Promise; onVideoHostingUpdate(): Promise; initializeForModerationData(): Promise; initializeForVideo(label: string): Promise; readonly allowance: { canModerateVideos: boolean; canViewAllVideos: boolean; }; readonly catalog: import("../../features/videos/types/video-concepts.js").VideoHosting.DacastContent[]; readonly views: import("../../features/videos/types/video-concepts.js").VideoView[]; readonly privileges: import("../../features/auth/aspects/users/routines/permissions/types/privilege-display.js").PrivilegeDisplay[]; readonly shows: import("../../features/videos/types/video-concepts.js").VideoShow[]; getView(label: string): import("../../features/videos/types/video-concepts.js").VideoView; getPrivilege(id: string): import("../../features/auth/aspects/users/routines/permissions/types/privilege-display.js").PrivilegeDisplay; getShow(label: string): import("../../features/videos/types/video-concepts.js").VideoShow; setView(view: { label: string; privileges: string[]; reference: import("../../features/videos/types/video-concepts.js").VideoHosting.DacastReference; }): Promise; deleteView(label: string): Promise; }; updateAccessOp(accessOp: import("../../framework/ops.js").Op): void; }; notesModel: { initialize: () => Promise; state: { accessOp: import("../../framework/ops.js").Op; statsOp: import("../../framework/ops.js").Op; }; stateSubscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ accessOp: import("../../framework/ops.js").Op; statsOp: import("../../framework/ops.js").Op; }>) => () => void; updateAccessOp(op: import("../../framework/ops.js").Op): Promise; readonly isLoggedIn: boolean; readonly stats: import("../../features/notes/types/notes-concepts.js").NotesStats; propagateChangeToOtherTabs: import("../../toolbox/subbies.js").Subbie; loadStats: () => Promise; overwriteStatsOp(op: import("../../framework/ops.js").Op): void; createNotesCacheDetails: () => { cache: { subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ old: boolean; pageNumber: number; pageSize: number; notesOp: import("../../framework/ops.js").Op; }>) => () => void; cacheState: { old: boolean; pageNumber: number; pageSize: number; notesOp: import("../../framework/ops.js").Op; }; loginStatusChanged(): Promise; readonly notes: import("../../features/notes/types/notes-concepts.js").Notes.Any[]; fetchAppropriateNotes: () => Promise; switchTabNew(): Promise; switchTabOld(): Promise; readonly isNextPageAvailable: boolean; readonly isPreviousPageAvailable: boolean; nextPage(): Promise; previousPage(): Promise; markAllNotesOld(): Promise; markSpecificNoteOld(noteId: string): Promise; markSpecificNoteNew(noteId: string): Promise; readonly totalPages: number; }; setup: () => () => void; }; }; storeModel: { updateAccessOp(op: import("../../framework/ops.js").Op): Promise; load: () => Promise; initialize: () => Promise; refresh: () => Promise; subscriptions: { addPlan(options: { planLabel: string; tier: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionTierDraft; }): Promise; addTier(options: { label: string; planId: string; pricing: import("../../features/store/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("../../features/store/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("../../features/auth/types/auth-tokens.js").AccessPayload; }; connect: { readonly status: import("../../features/store/isomorphic/concepts.js").StripeConnectStatus; readonly details: import("../../features/store/isomorphic/concepts.js").StripeConnectDetails; }; subscriptions: { readonly plans: import("../../features/store/isomorphic/concepts.js").SubscriptionPlan[]; readonly mySubscriptionDetails: import("../../features/store/isomorphic/concepts.js").SubscriptionDetails[]; }; billing: { readonly paymentMethod: import("../../features/store/isomorphic/concepts.js").PaymentMethod; }; }; }; personalModel: { track: (observer: import("@chasemoskal/snapstate").Observer<{ accessOp: import("../../framework/ops.js").Op; submitDraftOp: import("../../framework/ops.js").Op; }, X>, reaction?: import("@chasemoskal/snapstate").Reaction, options?: { flip?: boolean; }) => () => void; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ accessOp: import("../../framework/ops.js").Op; submitDraftOp: import("../../framework/ops.js").Op; }>) => () => void; readable: { accessOp: import("../../framework/ops.js").Op; submitDraftOp: import("../../framework/ops.js").Op; }; saveProfile(profileDraft: import("../../features/auth/aspects/users/routines/personal/types/profile-draft.js").ProfileDraft): Promise; updateAccessOp(op: import("../../framework/ops.js").Op): void; }; questionsModel: { subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ access: import("../../features/auth/types/auth-tokens.js").AccessPayload; users: import("../../features/auth/aspects/users/types/user.js").User[]; questions: import("../../features/questions/api/types/questions-and-answers.js").Question[]; boardOps: { [key: string]: import("../../framework/ops.js").Op; }; postingOp: import("../../framework/ops.js").Op; }>) => () => void; makeBoardModel: (board: string) => { getPermissions(): { readonly "read questions": boolean; readonly "post questions": boolean; readonly "moderate questions": boolean; readonly "answer questions": boolean; readonly "like questions": boolean; readonly "report questions": boolean; }; getBoardName(): string; getAccess(): import("../../features/auth/types/auth-tokens.js").AccessPayload; getBoardOp(): import("../../framework/ops.js").Op; getPostingOp(): import("../../framework/ops.js").Op; getQuestions(): { answers: import("../../features/questions/api/types/questions-and-answers.js").Answer[]; questionId: string; authorUserId: string; board: string; content: string; archive: boolean; timePosted: number; liked: boolean; likes: number; reports: number; reported: boolean; }[]; getUser(userId: string): import("../../features/auth/aspects/users/types/user.js").User; loadQuestions(): Promise; postQuestion({ content }: { content: string; }): Promise; postAnswer(questionId: string, answerDraft: import("../../features/questions/api/types/answer-draft.js").AnswerDraft): Promise; likeQuestion(questionId: string, like: boolean): Promise; likeAnswer(questionId: string, answerId: string, like: boolean): Promise; reportQuestion(questionId: string, report: boolean): Promise; reportAnswer(questionId: string, answerId: string, report: boolean): Promise; archiveQuestion(questionId: string, archive: boolean): Promise; archiveAnswer(questionId: string, answerId: string, archive: boolean): Promise; archiveBoard(): Promise; }; accessChange: (access: import("../../features/auth/types/auth-tokens.js").AccessPayload) => void; }; permissionsModel: { readable: { active: boolean; accessOp: import("../../framework/ops.js").Op; permissionsDisplay: import("../../framework/ops.js").Op; }; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ active: boolean; accessOp: import("../../framework/ops.js").Op; permissionsDisplay: import("../../framework/ops.js").Op; }>) => () => void; track: (observer: import("@chasemoskal/snapstate").Observer<{ active: boolean; accessOp: import("../../framework/ops.js").Op; permissionsDisplay: import("../../framework/ops.js").Op; }, X_1>, reaction?: import("@chasemoskal/snapstate").Reaction, options?: { flip?: boolean; }) => () => void; getAccess: () => import("../../features/auth/types/auth-tokens.js").AccessPayload; initialize: () => Promise; getUserCanCustomizePermissions: () => boolean; createRole: ({ label }: { label: string; }) => Promise; deleteRole: ({ roleId: roleIdString }: { roleId: string; }) => Promise; assignPrivilege: ({ roleId: roleIdString, privilegeId: privilegeIdString }: { roleId: string; privilegeId: string; }) => Promise; unassignPrivilege: ({ roleId: roleIdString, privilegeId: privilegeIdString }: { roleId: string; privilegeId: string; }) => Promise; deletePrivilege: ({ privilegeId: privilegeIdString }: { privilegeId: string; }) => Promise; createPrivilege: ({ label }: { label: string; }) => Promise; updateAccessOp(op: import("../../framework/ops.js").Op): Promise; }; administrativeModel: { state: { accessOp: import("../../framework/ops.js").Op; permissionsOp: import("../../framework/ops.js").Op; }; subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ accessOp: import("../../framework/ops.js").Op; permissionsOp: import("../../framework/ops.js").Op; }>) => () => void; getAccess: () => import("../../features/auth/types/auth-tokens.js").AccessPayload; initialize: () => Promise; readonly isAllowed: (privilege: "universal" | "banned" | "view all chats" | "participate in all chats" | "read questions" | "post questions" | "like questions" | "report questions" | "moderate all chats" | "control stripe account" | "manage store" | "give away freebies" | "view all videos" | "moderate videos" | "edit any profile" | "customize permissions" | "answer questions" | "moderate questions" | "view stats" | "administrate user roles") => boolean; reauthorize: () => Promise; searchUsers: (options: { term: string; }) => Promise<{ user: { userId: string; profile: import("../../features/auth/aspects/users/types/profile.js").Profile; roles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; stats: import("../../features/auth/aspects/users/types/user-stats.js").UserStats; }; roleIds: string[]; }[]>; assignRoleToUser: (options: { roleId: string; userId: string; isPublic: boolean; timeframeEnd: number; timeframeStart: number; }) => Promise; revokeRoleFromUser: (options: { roleId: string; userId: string; }) => Promise; updateAccessOp(op: import("../../framework/ops.js").Op): Promise; }; }; remote: import("renraku").ApiRemote<{ auth: { apps: { appService: import("renraku").Service; registerApp({ appDraft, ownerUserId }: { appDraft: import("../../features/auth/aspects/apps/types/app-draft.js").AppDraft; ownerUserId: string; }): Promise; }>; appEditService: import("renraku").Service; deleteApp({ appId: appIdString }: { appId: string; }): Promise; listAdmins({ appId: appIdString }: { appId: string; }): Promise; assignPlatformUserAsAdmin({ appId: appIdString, platformUserId: platformUserIdString }: { appId: string; platformUserId: string; }): Promise; assignAdmin({ appId: appIdString, email }: { appId: string; email: string; }): Promise; revokeAdmin({ appId: appIdString, userId: userIdString }: { appId: string; userId: string; }): Promise; }>; }; users: { greenService: import("renraku").Service; }>; loginService: import("renraku").Service; authenticateViaLoginToken({ loginToken }: { loginToken: string; }): Promise; refreshToken: Promise; }>>; }>; userService: import("renraku").Service; }>; personalService: import("renraku").Service; }>; }; permissions: { permissionsService: import("renraku").Service Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { fetchPermissions(): Promise; createRole({ label }: { label: string; }): Promise; deleteRole({ roleId: roleIdString }: { roleId: string; }): Promise; assignPrivilege({ roleId: roleIdString, privilegeId: privilegeIdString }: { roleId: string; privilegeId: string; }): Promise; unassignPrivilege({ roleId: roleIdString, privilegeId: privilegeIdString }: { roleId: string; privilegeId: string; }): Promise; createPrivilege({ label }: { label: string; }): Promise; deletePrivilege({ privilegeId: privilegeIdString }: { privilegeId: string; }): Promise; }>; }; }; administrative: { roleAssignmentService: import("renraku").Service Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { fetchPermissions(): Promise; searchUsers(options: { term: string; }): Promise<{ user: { userId: string; profile: import("../../features/auth/aspects/users/types/profile.js").Profile; roles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; stats: import("../../features/auth/aspects/users/types/user-stats.js").UserStats; }; roleIds: string[]; }[]>; assignRoleToUser(options: { roleId: string; userId: string; isPublic: boolean; timeframeEnd: number; timeframeStart: number; }): Promise; revokeRoleFromUser(options: { roleId: string; userId: string; }): Promise; }>; }; questions: { questionsReadingService: import("renraku").Service; }>; questionsPostingService: import("renraku").Service; archiveQuestion(inputs: { archive: boolean; questionId: string; }): Promise; likeQuestion(inputs: { like: boolean; questionId: string; }): Promise; reportQuestion(inputs: { report: boolean; questionId: string; }): Promise; }>; questionsAnsweringService: import("renraku").Service; archiveAnswer(inputs: { archive: boolean; answerId: string; }): Promise; likeAnswer(inputs: { like: boolean; answerId: string; }): Promise; reportAnswer(inputs: { report: boolean; answerId: string; }): Promise; }>; questionsModerationService: import("renraku").Service; fetchReportedQuestions(): Promise; }>; }; example: { exampleService: import("renraku").Service>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { exampleFunction({ something }: { something: string; }): Promise; }>; }; videos: { dacastService: import("renraku").Service; engine: { getUsersHaveRoles: ({ userIds, onlyGetPublicRoles }: { userIds: string[]; onlyGetPublicRoles: boolean; }) => Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; }, { getLink(): Promise; setLink(inputs: { apiKey: string; }): Promise; clearLink(): Promise; }>; contentService: import("renraku").Service Promise<{ userId: string; userHasRoles: { userId: import("dbmage").Id; roleId: import("dbmage").Id; timeframeStart: number; timeframeEnd: number; public: boolean; hard: boolean; time: number; }[]; }[]>; getAnonymousPrivileges: () => Promise; getPrivilegesForUsers: (userIds: string[]) => Promise<{ userId: string; privileges: string[]; }[]>; getPublicRolesForUsers: (userIds: string[]) => Promise<{ userId: string; publicUserRoles: import("../../features/auth/aspects/users/types/public-user-role.js").PublicUserRole[]; }[]>; getPermissionsDisplay: () => Promise; getPrivileges: (privilegeIds: string[]) => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getAllPrivileges: () => Promise<{ hard: boolean; label: string; time: number; privilegeId: string; }[]>; getUserPrivileges: (userId: string) => Promise; }; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ "view all videos": string; "moderate videos": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; }, { fetchModerationData(): Promise; writeView({ label, privileges, reference, }: { label: string; privileges: string[]; reference: import("../../features/videos/types/video-concepts.js").VideoHosting.DacastReference; }): Promise; deleteView({ label }: { label: string; }): Promise; getShows({ labels }: { labels: string[]; }): Promise; }>; }; notes: { notesService: import("renraku").Service; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; database: import("./types/database.js").DatabaseSafe; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; }, { getNotesStats(): Promise; getNewNotes(pagination: import("../../features/notes/types/notes-concepts.js").Pagination): Promise; getOldNotes(pagination: import("../../features/notes/types/notes-concepts.js").Pagination): Promise; markAllNotesOld(): Promise; markNotesNewOrOld(input: { old: boolean; noteIds: string[]; }): Promise; }>; }; store: { connect: import("renraku").Service; generatePopupForStripeAccountOnboarding(): Promise<{ popupId: string; stripeAccountId: string; stripeAccountSetupLink: string; }>; generateStripeLoginLink(): Promise<{ stripeLoginLink: string; popupId: string; }>; pause(): Promise; resume(): Promise; loadConnectStatus(): Promise; }>; billing: import("renraku").Service>; }; 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { getDefaultPaymentMethod(): Promise; generateCustomerPortalLink(): Promise<{ popupId: string; customer: string; stripeSessionUrl: string; stripeAccountId: string; }>; }>; subscriptions: { listing: import("renraku").Service>; }; 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { listPlans(): Promise<{ archived: boolean; label: string; planId: string; time: number; tiers: import("../../features/store/isomorphic/concepts.js").SubscriptionTier[]; }[]>; }>; planning: import("renraku").Service; createTierForPlan({ planId, label, pricing }: { planId: string; label: string; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise<{ tierId: import("dbmage").Id; roleId: import("dbmage").Id; time: number; stripePriceId: string; }>; updatePlan({ planId: planIdString, label, archived }: { planId: string; label: string; archived: boolean; }): Promise; updateTier({ tierId: tierIdString, label, active, pricing }: { tierId: string; label: string; active: boolean; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; }; connectId: import("dbmage").Id; stripeAccountId: string; stripeLiaisonAccount: { 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { addPlan(inputs: { planLabel: string; tier: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionTierDraft; }): Promise; addTier(inputs: { label: string; planId: string; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; editPlan(inputs: { planId: string; label: string; archived: boolean; }): Promise; editTier(inputs: { label: string; tierId: string; active: boolean; pricing: import("../../features/store/backend/services/subscriptions/types/drafts.js").SubscriptionPricingDraft; }): Promise; }>; shopping: import("renraku").Service>; }; 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>; }; }; }; storeDatabase: import("../../features/store/backend/database/types/schema.js").StoreDatabase; 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>; }; }; }; }; roleManager: import("../../features/auth/aspects/permissions/interactions/types.js").RoleManager; storeDatabaseUnconnected: import("../../features/store/backend/database/types/schema.js").StoreDatabaseUnconnected; checker: import("../../features/auth/aspects/permissions/types/privilege-checker.js").PrivilegeChecker<{ universal: string; banned: string; "moderate all chats": string; "control stripe account": string; "manage store": string; "give away freebies": string; "view all videos": string; "moderate videos": string; "edit any profile": string; "customize permissions": string; "answer questions": string; "moderate questions": string; "view stats": string; "administrate user roles": string; "view all chats": string; "participate in all chats": string; "read questions": string; "post questions": string; "like questions": string; "report questions": string; }>; access: import("../../features/auth/types/auth-tokens.js").AccessPayload; }, { fetchDetailsAboutMySubscriptions(): Promise; buy(stripePriceId: string): Promise<{ checkoutDetails?: import("../../features/store/backend/types/checkout-popup-details.js").CheckoutPopupDetails; }>; cancel(tierId: string): Promise; uncancel(tierId: string): Promise; }>; }; }; }>; nextModalResults: { confirm: boolean; prompt: { value: any; }; }; }>; }>; }>;