import type { PaymentMethod, PaymentIntent, PaymentSheet, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleNextActionResult, HandleNextActionForSetupResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, StripeError, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, SetupIntent, CreateTokenResult, Token, VerifyMicrodepositsParams, VerifyMicrodepositsForPaymentResult, VerifyMicrodepositsForSetupResult, CollectBankAccountForSetupResult, CollectBankAccountForPaymentResult, CanAddCardToWalletParams, CanAddCardToWalletResult, FinancialConnections, PlatformPay, PlatformPayError } from '../types'; /** * useStripe hook */ export declare function useStripe(): { retrievePaymentIntent: (clientSecret: string) => Promise; retrieveSetupIntent: (clientSecret: string) => Promise; confirmPayment: (paymentIntentClientSecret: string, data?: PaymentIntent.ConfirmParams | undefined, options?: PaymentIntent.ConfirmOptions) => Promise; createPaymentMethod: (data: PaymentMethod.CreateParams, options?: PaymentMethod.CreateOptions) => Promise; handleNextAction: (paymentIntentClientSecret: string, returnURL?: string | undefined) => Promise; handleNextActionForSetup: (setupIntentClientSecret: string, returnURL?: string | undefined) => Promise; confirmSetupIntent: (paymentIntentClientSecret: string, data: SetupIntent.ConfirmParams, options?: SetupIntent.ConfirmOptions) => Promise; createTokenForCVCUpdate: (cvc: string) => Promise; handleURLCallback: (url: string) => Promise; confirmPaymentSheetPayment: () => Promise; presentPaymentSheet: (options?: PaymentSheet.PresentOptions | undefined) => Promise; initPaymentSheet: (params: PaymentSheet.SetupParams) => Promise; createToken: (params: Token.CreateParams) => Promise; collectBankAccountForPayment: (clientSecret: string, params: PaymentMethod.CollectBankAccountParams) => Promise; collectBankAccountForSetup: (clientSecret: string, params: PaymentMethod.CollectBankAccountParams) => Promise; verifyMicrodepositsForPayment: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise; verifyMicrodepositsForSetup: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise; canAddCardToWallet: (params: CanAddCardToWalletParams) => Promise; collectBankAccountToken: (clientSecret: string) => Promise; collectFinancialConnectionsAccounts: (clientSecret: string) => Promise; /** * You must call this method when the user logs out from your app. This will ensure that * any persisted authentication state in the PaymentSheet, such as authentication cookies, * is also cleared during logout. */ resetPaymentSheetCustomer: () => Promise; isPlatformPaySupported: (params?: { googlePay?: PlatformPay.IsGooglePaySupportedParams | undefined; } | undefined) => Promise; confirmPlatformPaySetupIntent: (clientSecret: string, params: PlatformPay.ConfirmParams) => Promise; confirmPlatformPayPayment: (clientSecret: string, params: PlatformPay.ConfirmParams) => Promise; dismissPlatformPay: () => Promise; createPlatformPayPaymentMethod: (params: PlatformPay.PaymentMethodParams) => Promise; createPlatformPayToken: (params: PlatformPay.PaymentMethodParams) => Promise; updatePlatformPaySheet: (params: { applePay: { cartItems: Array; shippingMethods: Array; errors: Array; }; }) => Promise<{ error?: StripeError; }>; openPlatformPaySetup: () => Promise; };