import type { PaymentEventCallback, PaymentErrorCallback } from '../types'; /** * Helper component to take an action when the form or transaction status changes. * * For example, if the transaction status changes to "pending", this will set * the form status to "submitting"; if the transaction status changes to * "redirecting", this will perform the redirect. If there is an error, the * `onPaymentError` callback will be called. */ export default function FormAndTransactionEventHandler({ onPaymentComplete, onPaymentRedirect, onPaymentError, redirectToUrl, }: { onPaymentComplete?: PaymentEventCallback; onPaymentRedirect?: PaymentEventCallback; onPaymentError?: PaymentErrorCallback; redirectToUrl?: (url: string) => void; }): null; export declare function useTransactionStatusHandler({ onPaymentComplete, onPaymentRedirect, onPaymentError, redirectToUrl, }: { onPaymentComplete?: PaymentEventCallback; onPaymentRedirect?: PaymentEventCallback; onPaymentError?: PaymentErrorCallback; redirectToUrl?: (url: string) => void; }): void; //# sourceMappingURL=form-and-transaction-event-handler.d.ts.map