export type PaywallCustomVariable = string | number | boolean; export type PaywallCustomVariables = Record; export declare class NativelyPurchases { private readonly id; login(login: string, customerEmail?: string, login_callback?: Function): void; logout(logout_callback: Function): void; /** * @deprecated Use appUserId() instead. * Kept as-is so existing integrations don't break. Despite the name, it returns * RevenueCat's originalAppUserId, which stays the anonymous ID after login(). */ customerId(customer_id_callback: Function): void; appUserId(app_user_id_callback: Function): void; restore(restore_callback: Function): void; showPaywall(shouldShowCloseButton?: boolean, offeringId?: string, show_paywall_callback?: Function): void; showPaywall(shouldShowCloseButton?: boolean, offeringId?: string, customVariables?: PaywallCustomVariables, show_paywall_callback?: Function): void; showPaywallIfNeeded(entitlementId: string, shouldShowCloseButton?: boolean, offeringId?: string, show_paywall_if_needed_callback?: Function): void; showPaywallIfNeeded(entitlementId: string, shouldShowCloseButton?: boolean, offeringId?: string, customVariables?: PaywallCustomVariables, show_paywall_if_needed_callback?: Function): void; purchasePackage(packageId: string, purchase_callback: Function, oldProductId?: string | null, prorationMode?: string | null, offeringId?: string | null, subscriptionOptionId?: string | null): void; packagePrice(packageId: string, purchase_callback: Function, offeringId?: string | null): void; showCustomerCenter(show_customer_center_callback: Function): void; getOfferings(get_offerings_callback: Function): void; presentOfferCodeRedemptionSheet(callback: Function): void; }