import { WebPlugin } from '@capacitor/core'; import type { BILLING_FEATURE, CustomerInfo, CustomerInfoUpdateListener, IN_APP_MESSAGE_TYPE, IntroEligibility, LOG_LEVEL, LogHandler, LogInResult, MakePurchaseResult, PurchasesConfiguration, PurchasesEntitlementInfo, PurchasesOffering, PurchasesOfferings, PurchasesPromotionalOffer, PurchasesStoreProduct, PurchasesStoreTransaction, PurchasesVirtualCurrencies, PurchasesWinBackOffer, ShouldPurchasePromoProductListener, Storefront, WebPurchaseRedemption, WebPurchaseRedemptionResult } from '@revenuecat/purchases-typescript-internal-esm'; import { REFUND_REQUEST_STATUS } from '@revenuecat/purchases-typescript-internal-esm'; import type { GetEligibleWinBackOffersForPackageOptions, GetEligibleWinBackOffersForProductOptions, GetProductOptions, GetPromotionalOfferOptions, PurchaseDiscountedPackageOptions, PurchaseDiscountedProductOptions, PurchasePackageOptions, PurchasePackageWithWinBackOfferOptions, PurchaseProductWithWinBackOfferOptions, PurchasesPlugin, PurchaseStoreProductOptions, PurchaseSubscriptionOptionOptions, SyncAmazonPurchaseOptions, SyncObserverModeAmazonPurchaseOptions, TrackCustomPaywallImpressionOptions } from './definitions'; export declare class PurchasesWeb extends WebPlugin implements PurchasesPlugin { private shouldMockWebResults; private webNotSupportedErrorMessage; configure(_configuration: PurchasesConfiguration): Promise; parseAsWebPurchaseRedemption(_options: { urlString: string; }): Promise<{ webPurchaseRedemption: WebPurchaseRedemption | null; }>; redeemWebPurchase(_options: { webPurchaseRedemption: WebPurchaseRedemption; }): Promise; setMockWebResults(options: { shouldMockWebResults: boolean; }): Promise; setSimulatesAskToBuyInSandbox(_simulatesAskToBuyInSandbox: { simulatesAskToBuyInSandbox: boolean; }): Promise; addCustomerInfoUpdateListener(_customerInfoUpdateListener: CustomerInfoUpdateListener): Promise; removeCustomerInfoUpdateListener(_options: { listenerToRemove: string; }): Promise<{ wasRemoved: boolean; }>; addShouldPurchasePromoProductListener(_shouldPurchasePromoProductListener: ShouldPurchasePromoProductListener): Promise; removeShouldPurchasePromoProductListener(_listenerToRemove: string): Promise<{ wasRemoved: boolean; }>; getOfferings(): Promise; getCurrentOfferingForPlacement(_options: { placementIdentifier: string; }): Promise; syncAttributesAndOfferingsIfNeeded(): Promise; getProducts(_options: GetProductOptions): Promise<{ products: PurchasesStoreProduct[]; }>; purchaseStoreProduct(_options: PurchaseStoreProductOptions): Promise; purchaseDiscountedProduct(_options: PurchaseDiscountedProductOptions): Promise; purchasePackage(_options: PurchasePackageOptions): Promise; purchaseSubscriptionOption(_options: PurchaseSubscriptionOptionOptions): Promise; purchaseDiscountedPackage(_options: PurchaseDiscountedPackageOptions): Promise; restorePurchases(): Promise<{ customerInfo: CustomerInfo; }>; recordPurchase(options: { productID: string; }): Promise<{ transaction: PurchasesStoreTransaction; }>; getAppUserID(): Promise<{ appUserID: string; }>; getStorefront(): Promise; logIn(_appUserID: { appUserID: string; }): Promise; logOut(): Promise<{ customerInfo: CustomerInfo; }>; setLogLevel(_level: { level: LOG_LEVEL; }): Promise; setLogHandler(_logHandler: LogHandler): Promise; getCustomerInfo(): Promise<{ customerInfo: CustomerInfo; }>; syncPurchases(): Promise; syncObserverModeAmazonPurchase(_options: SyncObserverModeAmazonPurchaseOptions): Promise; syncAmazonPurchase(_options: SyncAmazonPurchaseOptions): Promise; enableAdServicesAttributionTokenCollection(): Promise; isAnonymous(): Promise<{ isAnonymous: boolean; }>; checkTrialOrIntroductoryPriceEligibility(_productIdentifiers: { productIdentifiers: string[]; }): Promise<{ [productId: string]: IntroEligibility; }>; getPromotionalOffer(_options: GetPromotionalOfferOptions): Promise; getEligibleWinBackOffersForProduct(_options: GetEligibleWinBackOffersForProductOptions): Promise<{ eligibleWinBackOffers: PurchasesWinBackOffer[]; }>; getEligibleWinBackOffersForPackage(_options: GetEligibleWinBackOffersForPackageOptions): Promise<{ eligibleWinBackOffers: PurchasesWinBackOffer[]; }>; purchaseProductWithWinBackOffer(_options: PurchaseProductWithWinBackOfferOptions): Promise; purchasePackageWithWinBackOffer(_options: PurchasePackageWithWinBackOfferOptions): Promise; invalidateCustomerInfoCache(): Promise; presentCodeRedemptionSheet(): Promise; setAttributes(_attributes: { [key: string]: string | null; }): Promise; setEmail(_email: { email: string | null; }): Promise; setPhoneNumber(_phoneNumber: { phoneNumber: string | null; }): Promise; setDisplayName(_displayName: { displayName: string | null; }): Promise; setPushToken(_pushToken: { pushToken: string | null; }): Promise; setProxyURL(_url: { url: string; }): Promise; collectDeviceIdentifiers(): Promise; setAdjustID(_adjustID: { adjustID: string | null; }): Promise; setAppsflyerID(_appsflyerID: { appsflyerID: string | null; }): Promise; setFBAnonymousID(_fbAnonymousID: { fbAnonymousID: string | null; }): Promise; setMparticleID(_mparticleID: { mparticleID: string | null; }): Promise; setCleverTapID(_cleverTapID: { cleverTapID: string | null; }): Promise; setMixpanelDistinctID(_mixpanelDistinctID: { mixpanelDistinctID: string | null; }): Promise; setFirebaseAppInstanceID(_firebaseAppInstanceID: { firebaseAppInstanceID: string | null; }): Promise; setOnesignalID(_onesignalID: { onesignalID: string | null; }): Promise; setOnesignalUserID(_onesignalUserID: { onesignalUserID: string | null; }): Promise; setSingularDeviceID(_singularDeviceID: { singularDeviceID: string | null; }): Promise; setAirshipChannelID(_airshipChannelID: { airshipChannelID: string | null; }): Promise; setMediaSource(_mediaSource: { mediaSource: string | null; }): Promise; setCampaign(_campaign: { campaign: string | null; }): Promise; setAdGroup(_adGroup: { adGroup: string | null; }): Promise; setAd(_ad: { ad: string | null; }): Promise; setKeyword(_keyword: { keyword: string | null; }): Promise; setCreative(_creative: { creative: string | null; }): Promise; canMakePayments(_features?: { features?: BILLING_FEATURE[]; }): Promise<{ canMakePayments: boolean; }>; beginRefundRequestForActiveEntitlement(): Promise<{ refundRequestStatus: REFUND_REQUEST_STATUS; }>; beginRefundRequestForEntitlement(_entitlementInfo: { entitlementInfo: PurchasesEntitlementInfo; }): Promise<{ refundRequestStatus: REFUND_REQUEST_STATUS; }>; beginRefundRequestForProduct(_storeProduct: { storeProduct: PurchasesStoreProduct; }): Promise<{ refundRequestStatus: REFUND_REQUEST_STATUS; }>; showInAppMessages(_options?: { messageTypes?: IN_APP_MESSAGE_TYPE[]; }): Promise; isConfigured(): Promise<{ isConfigured: boolean; }>; overridePreferredUILocale(_options: { locale: string | null; }): Promise; getVirtualCurrencies(): Promise<{ virtualCurrencies: PurchasesVirtualCurrencies; }>; invalidateVirtualCurrenciesCache(): Promise; getCachedVirtualCurrencies(): Promise<{ cachedVirtualCurrencies: PurchasesVirtualCurrencies | null; }>; trackCustomPaywallImpression(_options?: TrackCustomPaywallImpressionOptions): Promise; private mockEmptyCustomerInfo; private mockEmptyVirtualCurrencies; private mockTransaction; private mockNonReturningFunctionIfEnabled; private mockReturningFunctionIfEnabled; }