import type { SubmitTransition } from '@funkit/connect-core'; import type { ReactElement } from 'react'; import type { StripeOnrampClient } from './stripeOnramp'; /** Keeps a non-Error rejection readable without assuming its shape. */ import { describeThrown } from './describeThrown'; export { describeThrown }; export declare function StripeSessionAuthController({ stripe, verifiedEmail, transition, pendingFallback, autoStart, onResume, onSubmit, onClose, }: { stripe: StripeOnrampClient; verifiedEmail: string; transition: SubmitTransition; /** * Drawn while the mount-time `/fiat/session` post is in flight. This round * asks the buyer for nothing, so a screen of its own would be a loading * surface they did not ask for: the caller passes the screen they were * already on and keeps its action pending instead. */ pendingFallback: ReactElement; /** * Whether arriving here is the buyer's own doing. False once they have dismissed Stripe's sheet: * this component unmounts while that sheet owns the screen, so `preflightStarted` cannot outlive * the round trip, and starting again on the remount reopens the sheet they just closed. */ autoStart: boolean; /** The buyer asking for the round again, after declining it. */ onResume?: () => void; onSubmit: (transition: SubmitTransition) => Promise; onClose: () => void; }): import("react").JSX.Element; //# sourceMappingURL=StripeSessionAuthController.d.ts.map