import { NativeModules } from 'react-native' ; import type { PaymentMethodCreateParams , ApplePay , PaymentSheet , ConfirmSetupIntent , InitialiseParams , CreatePaymentMethodResult , RetrievePaymentIntentResult , RetrieveSetupIntentResult , ConfirmPaymentResult , HandleCardActionResult , ConfirmSetupIntentResult , CreateTokenForCVCUpdateResult , InitPaymentSheetResult , PresentPaymentSheetResult , ConfirmPaymentSheetPaymentResult , Card , ApplePayResult , CreateTokenResult , GooglePayInitResult , PayWithGooglePayResult , CreateGooglePayPaymentMethodResult , GooglePay , OpenApplePaySetupResult , } from './types' ; type NativeStripeSdkType = { initialise ( params ) : Promise < void > ; createPaymentMethod ( data , options ) : Promise < CreatePaymentMethodResult > ; handleCardAction ( paymentIntentClientSecret ) : Promise < HandleCardActionResult > ; confirmPayment ( paymentIntentClientSecret , data , options ) : Promise < ConfirmPaymentResult > ; isApplePaySupported ( ) : Promise < boolean > ; presentApplePay ( params ) : Promise < ApplePayResult > ; confirmApplePayPayment ( clientSecret ) : Promise < void > ; updateApplePaySummaryItems ( summaryItems , errorAddressFields ) : Promise < void > ; confirmSetupIntent ( paymentIntentClientSecret , data , options ) : Promise < ConfirmSetupIntentResult > ; retrievePaymentIntent ( clientSecret ) : Promise < RetrievePaymentIntentResult > ; retrieveSetupIntent ( clientSecret ) : Promise < RetrieveSetupIntentResult > ; initPaymentSheet ( params ) : Promise < InitPaymentSheetResult > ; presentPaymentSheet ( ) : Promise < PresentPaymentSheetResult > ; confirmPaymentSheetPayment ( ) : Promise < ConfirmPaymentSheetPaymentResult > ; createTokenForCVCUpdate ( cvc ) : Promise < CreateTokenForCVCUpdateResult > ; handleURLCallback ( url ) : Promise < boolean > ; createToken ( params ) : Promise < CreateTokenResult > ; initGooglePay ( params ) : Promise < GooglePayInitResult > ; presentGooglePay ( params ) : Promise < PayWithGooglePayResult > ; createGooglePayPaymentMethod ( params ) : Promise < CreateGooglePayPaymentMethodResult > ; openApplePaySetup ( ) : Promise < OpenApplePaySetupResult > ; } ; const { StripeSdk } = NativeModules ; export default StripeSdk as NativeStripeSdkType ;