import * as react from 'react';
import * as CheckoutApi from '@noaignite/centra-types';

interface PaymentEmbedProps {
    values: Record<string, unknown>;
    onPaymentSuccess?: (paymentResult: CheckoutApi.SuccessResponse<CheckoutApi.Payment>) => void;
    onPaymentError?: (error: CheckoutApi.Errors) => void;
}
/** This component handles rendering of payment widgets such as Klarna Checkout and Adyen drop-in, if you submit payments yourself directly,
you should simply call the submitPayment method of the context instead */
declare const PaymentEmbed: react.NamedExoticComponent<PaymentEmbedProps>;

export { PaymentEmbed, type PaymentEmbedProps };
