import { EventEmitter } from 'expo-modules-core'; import { Product, ProductPurchase, Purchase, PurchaseError, PurchaseResult, RequestSubscriptionProps, SubscriptionProduct, SubscriptionPurchase } from './ExpoIap.types'; import { RequestPurchaseAndroidProps } from './types/ExpoIapAndroid.types'; import { RequestPurchaseIosProps } from './types/ExpoIapIos.types'; export * from './modules/android'; export * from './modules/ios'; export declare const PI: any; export declare enum IapEvent { PurchaseUpdated = "purchase-updated", PurchaseError = "purchase-error", TransactionIapUpdated = "iap-transaction-updated" } export declare function setValueAsync(value: string): Promise; export declare const emitter: EventEmitter; export declare const purchaseUpdatedListener: (listener: (event: Purchase) => void) => import("expo-modules-core").Subscription; export declare const purchaseErrorListener: (listener: (error: PurchaseError) => void) => import("expo-modules-core").Subscription; export declare function initConnection(): any; export declare const getProducts: (skus: string[]) => Promise; export declare const getSubscriptions: (skus: string[]) => Promise; export declare function endConnection(): Promise; export declare const getPurchaseHistory: ({ alsoPublishToEventListener, automaticallyFinishRestoredTransactions, onlyIncludeActiveItems, }?: { alsoPublishToEventListener?: boolean; automaticallyFinishRestoredTransactions?: boolean; onlyIncludeActiveItems?: boolean; }) => Promise; export declare const getAvailablePurchases: ({ alsoPublishToEventListener, automaticallyFinishRestoredTransactions, onlyIncludeActiveItems, }?: { alsoPublishToEventListener?: boolean; automaticallyFinishRestoredTransactions?: boolean; onlyIncludeActiveItems?: boolean; }) => Promise; export declare const requestPurchase: (request: RequestPurchaseIosProps | RequestPurchaseAndroidProps) => Promise; export declare const requestSubscription: (request: RequestSubscriptionProps) => Promise; export declare const finishTransaction: ({ purchase, isConsumable, developerPayloadAndroid, }: { purchase: Purchase; isConsumable?: boolean; developerPayloadAndroid?: string; }) => Promise; export * from './useIap'; //# sourceMappingURL=index.d.ts.map