import Stripe from 'stripe'; import { H3Event } from 'h3'; interface useServerStripeOptions { apiKey?: string; serverOptions?: Stripe.StripeConfig; } /** * useServerStripe is a utility function that initializes and returns a Stripe instance * for server-side usage in Nuxt. It ensures that only one instance of Stripe is created * per event context, avoiding unnecessary re-initializations. * * @param {H3Event} event - The event object passed to the Nuxt event handler * @param {useServerStripeOptions} options.apiKey - Object to override the default Stripe apiKey * @param {useServerStripeOptions} options.serverOptions - Object to override the default Stripe configuration * @return {Promise} - A Promise that resolves to the Stripe server instance for the event context */ export declare const useServerStripe: (event: H3Event, { apiKey, serverOptions }?: useServerStripeOptions) => Promise; export {};