import { type PropType } from 'vue-demi'; import type { StripeCheckoutFormLoadActionsSuccess, StripeCheckoutFormSdk, StripeCheckoutFormSdkOptions, StripeCheckoutSession } from '@stripe/stripe-js'; import type { ScopedSlot, StatusSlots, VueStripeComponent } from '../utils/element-types.js'; declare const checkoutFormProviderProps: { /** Client secret of a Checkout Session (`ui_mode: 'form'`), or a Promise resolving to it. */ clientSecret: { type: PropType | undefined>; default: undefined; }; /** Alternative to `clientSecret`: a function returning the client secret. */ fetchClientSecret: { type: PropType<(() => Promise) | undefined>; default: undefined; }; /** Appearance of the form (Stripe's `Appearance` without `rules`). */ appearance: { type: PropType; default: undefined; }; /** When to show the loader: `'auto'`, `'always'` or `'never'`. */ loader: { type: PropType; default: undefined; }; /** Custom fonts for the form. */ fonts: { type: PropType; default: undefined; }; /** Saved payment methods (`enableSave`, `enableRedisplay`). */ savedPaymentMethod: { type: PropType; default: undefined; }; /** Prefill email, phone number and addresses. */ defaultValues: { type: PropType; default: undefined; }; }; /** Slot name -> the slot's props. `actions` and `session` are null until the actions load. */ type CheckoutFormProviderSlots = StatusSlots & { default?: ScopedSlot<{ checkout: StripeCheckoutFormSdk; actions: StripeCheckoutFormLoadActionsSuccess | null; session: StripeCheckoutSession | null; loading: boolean; }>; }; /** Event name -> payload. */ type CheckoutFormProviderEvents = { ready: [actions: StripeCheckoutFormLoadActionsSuccess]; change: [session: StripeCheckoutSession]; error: [message: string]; }; /** * Checkout Form (`stripe.initCheckoutFormSdk()`, `ui_mode: 'form'`). Stripe beta: * the account needs Checkout Form access. * * Children render as soon as the SDK exists so `` can mount * early; session actions arrive once `loadActions()` resolves (`useCheckoutForm()`, `@ready`). */ declare const _default: VueStripeComponent, CheckoutFormProviderEvents, CheckoutFormProviderSlots>; export default _default;