import type { SwappedFormOfPayment } from '@funkit/api-base'; import React from 'react'; import type { PaymentMethodType } from '../../../hooks/usePaymentSources'; import { type CheckoutModalCommonState, FunCheckoutStep } from '../../../modals/CheckoutModal/stepTransition.shared'; import { type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition'; import { type SwappedMode } from '../../../providers/SwappedProvider'; export type SwappedIframeState = CheckoutModalCommonState & { /** The selected payment option from the fops API */ selectedPaymentOption: SwappedFormOfPayment; /** Payment method type filter to restore when returning to SOURCE_CHANGE */ paymentMethodTypeFilter?: PaymentMethodType; /** Slot/origin for the shared Swapped iframe step */ swappedMode: SwappedMode; /** Set to true when an error occurs (iframe error or load timeout) */ error?: boolean; }; export type SwappedIframeNext = { success?: boolean; }; export declare const SwappedIframeInfo: ModalStepInfo; export declare function SwappedIframeController({ modalState, onBack, onClose, setModalState, }: ModalStepComponentProps): React.JSX.Element;