import { type PropType, type Ref } from 'vue-demi'; import { VueStripeCheckoutError } from '../utils/errors.cjs'; import type { ScopedSlot, VueStripeComponent } from '../utils/element-types.cjs'; declare const checkoutProps: { /** Hosted Checkout Session URL (`session.url`) created on your server. */ sessionUrl: { type: PropType; default: undefined; }; buttonText: { type: StringConstructor; default: string; }; loadingText: { type: StringConstructor; default: string; }; disabled: { type: BooleanConstructor; default: boolean; }; buttonClass: { type: StringConstructor; default: string; }; }; /** Template ref members. */ type CheckoutExposed = { /** Starts the redirect (ignored while `loading` or `disabled`). */ checkout: () => void; /** `true` once the redirect has started. */ loading: Ref; }; /** Slot name -> the slot's props: the default slot replaces the button. */ type CheckoutSlots = { default?: ScopedSlot<{ checkout: () => void; loading: boolean; disabled: boolean; }>; }; /** Event name -> payload. */ type CheckoutEvents = { checkout: []; 'before-redirect': [event: { url: string; }]; success: []; error: [error: VueStripeCheckoutError]; }; /** * Redirects to a hosted Checkout Session URL created on your server. * Stripe.js removed `redirectToCheckout` (sessionId / priceId) in Clover; no * `` is needed. */ declare const _default: VueStripeComponent; export default _default;