1 | export * from './api';
|
2 | export * from './stripe-js';
|
3 |
|
4 | import {StripeConstructor, StripeConstructorOptions, Stripe} from './stripe-js';
|
5 |
|
6 | export const loadStripe: (
|
7 | publishableKey: string,
|
8 | options?: StripeConstructorOptions | undefined
|
9 | ) => Promise<Stripe | null>;
|
10 |
|
11 | declare global {
|
12 | interface Window {
|
13 | // Stripe.js must be loaded directly from https://js.stripe.com/v3, which
|
14 | // places a `Stripe` object on the window
|
15 | Stripe?: StripeConstructor;
|
16 | }
|
17 | }
|