/** * Hook for setting the payment method on a checkout session */ import { CheckoutData } from '../../core/resources/checkout'; import type { PaymentMethodName } from '../../core/resources/checkout'; export interface UseSetPaymentMethodOptions { sessionId?: string; checkout?: CheckoutData; onSuccess?: (paymentMethodName: PaymentMethodName) => void; } export interface UseSetPaymentMethodResult { setPaymentMethod: (paymentMethodName: PaymentMethodName) => Promise; isPending: boolean; error: Error | null; } export declare function useSetPaymentMethod(options?: UseSetPaymentMethodOptions): UseSetPaymentMethodResult;