import { PurchasesOfferings, PurchasesPackage } from '../revenuecat-types'; import { CustomerInfo, PurchasesConfig } from '../types'; import { PurchaseResult } from '../core/adapters'; export interface PaymentSheetParams { paymentIntent: string; ephemeralKey: string; customer: string; } export interface CheckoutSessionResponse { url: string; } export interface ManageSubscriptionResponse { url: string; } export interface StripeInformation { publishableKey: string; stripeAccountId: string; } export interface MakePurchaseResult { customerInfo: CustomerInfo; } declare class BackendClient { private config; configure(config: PurchasesConfig): void; private logEvent; private createError; private fetchApi; fetchOfferings(provider?: string): Promise; getCustomerInfo(appUserId: string): Promise; login(appUserId: string): Promise<{ customerInfo: CustomerInfo; created: boolean; }>; postPurchaseV1_1(appUserId: string, purchase: PurchaseResult): Promise; postPurchase(appUserId: string, productId: string, purchaseToken: string, transactionId: string, receipt: string, platform: 'ios' | 'android'): Promise; fetchPaymentSheetParams(appUserId: string, pkg: PurchasesPackage): Promise; createCheckoutSession(appUserId: string, pkg: PurchasesPackage): Promise; createManageSubscriptionSession(appUserId: string): Promise; getStripeInformation(): Promise; restorePurchasesV1_1(appUserId: string, purchases: PurchaseResult[]): Promise<{ customerInfo: CustomerInfo; }>; restorePurchases(appUserId: string, appleTransactionId: string): Promise<{ customerInfo: CustomerInfo; }>; linkAlias(oldId: string, newId: string): Promise; } export declare const backendClient: BackendClient; export {}; //# sourceMappingURL=backendClient.d.ts.map