import { ApplePayButtonController, ApplePayButtonListenerOptions } from './apple-pay'; import { GooglePayButtonController, GooglePayButtonListenerOptions } from './google-pay'; import { BillingAddressRequirement, CreditCardAdditionalFields, PaymentMethodFormController, PaymentMethodFormListenerOptions } from './payment-method-form'; type Container = HTMLElement | string; /** * Options accepted by {@link mountAmosCreditCardPaymentMethodForm}. */ export type AmosCreditCardPaymentMethodFormOptions = PaymentMethodFormListenerOptions & { /** * The Amos render token for the credit-card payment method form. * * It is safe to pass this to the client. Create this on * https://dashboard.amos.com. */ renderToken: string; /** * The additional fields that are required to be filled out in the * form in addition to the card number, expiration date, CVV, and * billing address fields. * * @default { cardholderName: false } */ additionalFields?: CreditCardAdditionalFields; /** * How much billing address the form collects. * * @default "country" */ billingAddressRequirement?: BillingAddressRequirement; }; /** * Controller returned by {@link mountAmosCreditCardPaymentMethodForm} * and {@link mountAmosBankAccountPaymentMethodForm}. */ export type AmosPaymentMethodFormMountController = PaymentMethodFormController & { /** * The underlying `