import { ErrorState } from '../../components/CheckoutButton/CheckoutButton'; export declare function useCheckout({ onSuccess, onError }?: { onSuccess?: () => void | Promise; onError?: () => void | Promise; }): { checkout: () => Promise; errorState: ErrorState; isLoading: boolean; loadingState: string; isSuccess: boolean; };