import type { FormOfPaymentType } from '@funkit/api-base'; import { type SwappedMode } from '../providers/SwappedProvider'; /** * Shared lifecycle hook for Swapped iframe containers (deposit + withdrawal). * Handles activate/deactivate on mount/unmount and timeout error detection for * the slot identified by `mode`. * * `onTimeout` is stabilized internally via useEffectEvent — callers do not * need to memoize it. */ export declare function useSwappedIframeLifecycle({ fopType, onTimeout, mode, }: { fopType: FormOfPaymentType; onTimeout: () => void; mode: SwappedMode; }): void;