import type { Stripe } from '@stripe/stripe-js'; import { type StripeInstance } from './injection-keys.js'; /** * Injects the Stripe context of `` or the `createVueStripe()` * plugin for `consumer` (a composable or component name). Throws * `VueStripeProviderError` naming both ways to provide it when there is none. * Reading the context starts the plugin's lazy Stripe.js load, so it runs while * the component renders rather than on the first method call. */ export declare function injectStripe(consumer: string): StripeInstance; /** * Resolves with the Stripe instance once a load in progress settles: right away * when it is loaded (always the case below ``, which renders its * children after the load), and `null` when the load failed or cannot run (server). */ export declare function whenStripeLoaded(instance: StripeInstance): Promise;