import { CardFormView, InitStripeParams, PaymentIntent, } from '@stripe/stripe-react-native' import { StyleProp, ViewStyle } from 'react-native' export interface IStripePaymentProps { onChangePaymentInfo: (paymentInfo: CardFormView.Details) => void onChangeConfirmPaymentLoading?: (loading: boolean) => void style?: StyleProp cardStyle?: CardFormView.Styles rootContainer?: any } export type StripePaymentHandle = { initStripe(params: InitStripeParams): Promise confirmPayment( stripeClientSecret: string, params: PaymentIntent.ConfirmParams ): Promise }