import { ReactElement } from 'react';
import { FormFields } from '@cezembre/forms';
import { FormProps } from '@cezembre/forms/dist/form';
import { CreditCardValue } from './creditCardInput';
export interface CreditCardFields extends FormFields {
    type: 'card';
    card?: CreditCardValue;
    save_card?: boolean;
}
export interface Props extends FormProps<CreditCardFields> {
    onCancel?: () => unknown;
}
export default function CreditCardForm({ onSubmit, onCancel }: Props): ReactElement;
