// Expo owns this published compatibility facade; sync only its core and confirmers. import type { PurchaseFlowPurchase, PurchaseFlowOptions, PurchaseConfirmation, } from './purchase-flow-core'; import { createDeviceConfirmationIOS as deviceConfirmation, createIapkitConfirmation as iapkitConfirmation, readIapkitVerification as readVerification, toIapkitVerificationProps as verificationProps, type IapkitConfirmationOptions as ConfirmationOptions, type IapkitVerificationProps as VerificationProps, type IapkitVerificationResult as VerificationResult, } from './purchase-flow-confirmers'; export * from './purchase-flow-core'; /* eslint-disable @typescript-eslint/no-empty-object-type -- Preserve the published mergeable interfaces. */ /** @deprecated Use the SDK's IapkitConfirmationOptions. Removed in the next major release. */ export interface IapkitConfirmationOptions< P extends PurchaseFlowPurchase = PurchaseFlowPurchase, > extends ConfirmationOptions

{} /** @deprecated Use the SDK's VerifyPurchaseWithProviderProps. Removed in the next major release. */ export interface IapkitVerificationProps extends VerificationProps {} /** @deprecated Use the SDK's VerifyPurchaseWithProviderResult. Removed in the next major release. */ export interface IapkitVerificationResult extends VerificationResult {} /* eslint-enable @typescript-eslint/no-empty-object-type */ /** @deprecated Use the SDK's confirmWithIapkit. Removed in the next major release. */ export function createIapkitConfirmation

( verify: (props: IapkitVerificationProps) => Promise, options: IapkitConfirmationOptions

, ): PurchaseFlowOptions

['confirmWithBackend'] { return iapkitConfirmation(verify, options); } /** @deprecated Use the SDK's confirmOnDeviceIOS. Removed in the next major release. */ export function createDeviceConfirmationIOS

( getPendingTransactionsIOS: () => Promise, options: { grant?: (purchase: P, context: {isConsumable: boolean}) => Promise; } = {}, ): PurchaseFlowOptions

['confirmWithBackend'] { return deviceConfirmation(getPendingTransactionsIOS, options); } /** @deprecated Use the SDK's confirmWithIapkit. Removed in the next major release. */ export function toIapkitVerificationProps

( purchase: P, options: IapkitConfirmationOptions

, ): IapkitVerificationProps { return verificationProps(purchase, options); } /** @deprecated Use the SDK's confirmWithIapkit. Removed in the next major release. */ export function readIapkitVerification

( result: IapkitVerificationResult, purchase: P, context: {isConsumable: boolean}, options: Omit, 'apiKey'> = {}, ): PurchaseConfirmation { return readVerification(result, purchase, context, options); }