import type { Checkout } from '../types/Checkout'; /** * Initializes a Stripe Checkout Session and returns a reactive handle. * * The session is fetched from Stripe when the hook mounts. `state` is `null` * until the initial load completes, then transitions between `loaded` and * `loading` as mutations are performed. * * Pass the returned `checkout` to `initPaymentSheet` to complete the purchase. * * @internal */ export declare function useCheckout(clientSecret: string, configuration?: Checkout.Configuration): { /** The current loading state of the checkout session. `null` until the initial load completes. */ state: Checkout.State | null; /** A handle to the session with methods for mutations. */ checkout: Checkout; /** Set if the initial session load fails. Undefined otherwise. */ error?: Checkout.Error; }; //# sourceMappingURL=useCheckout.d.ts.map