@funkit/connect 9.23.2-next.0 → 9.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/clients/aave.d.ts +10 -1
  3. package/dist/clients/aave.js +4 -1
  4. package/dist/clients/{chunk-4HCOSF4M.js → chunk-7G3QEQFB.js} +2 -2
  5. package/dist/clients/{chunk-7FIVHWNC.js → chunk-7UIDHSYG.js} +47 -0
  6. package/dist/clients/{chunk-UUHGOBKZ.js → chunk-AHYOV7AV.js} +2 -1
  7. package/dist/clients/chunk-JN6WUYT2.js +1110 -0
  8. package/dist/clients/{chunk-S7FRYR55.js → chunk-ME4OAQIY.js} +1 -1
  9. package/dist/clients/{chunk-VVTNR7YH.js → chunk-MXPZTW2H.js} +212 -1126
  10. package/dist/clients/{chunk-KWIR3HO4.js → chunk-VJZW3MA3.js} +1 -1
  11. package/dist/clients/{chunk-MRBN4XCA.js → chunk-ZEXZQOAO.js} +1 -1
  12. package/dist/clients/fanatics.css +1 -1
  13. package/dist/clients/fanatics.js +4 -6
  14. package/dist/clients/lighter.css +2821 -1
  15. package/dist/clients/lighter.d.ts +19 -1
  16. package/dist/clients/lighter.js +51 -30
  17. package/dist/clients/mallard.d.ts +1 -1
  18. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +217 -217
  19. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +1 -1
  20. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +7 -8
  21. package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +1 -1
  22. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  23. package/dist/clients/polymarket/index.css +217 -217
  24. package/dist/clients/polymarket/index.js +7 -8
  25. package/dist/clients/polymarket/polymarket.d.ts +2 -2
  26. package/dist/clients/polymarket/polymarket.js +2 -2
  27. package/dist/clients/polymarket/usePolymarketAccountBalances.js +2 -2
  28. package/dist/clients/rolly.d.ts +1 -1
  29. package/dist/clients/rolly.js +1 -1
  30. package/dist/components/ApprovalMethodToggle/ApprovalMethodToggle.d.ts +1 -1
  31. package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
  32. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
  33. package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
  34. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
  35. package/dist/components/FunCheckoutHistory/AddTokenToWalletButton.d.ts +1 -1
  36. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -1
  37. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
  38. package/dist/components/FunCheckoutHistory/PendingSuccessScreen.d.ts +2 -2
  39. package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +1 -1
  40. package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
  41. package/dist/components/FunPayments/FunPaymentMethods.d.ts +1 -1
  42. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
  43. package/dist/components/FunTooltip/FunTooltip.d.ts +10 -5
  44. package/dist/components/FunTransactionSummary/DestinationHealthFactorRow.d.ts +15 -0
  45. package/dist/components/FunTransactionSummary/DestinationYieldRows.d.ts +2 -1
  46. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +3 -3
  47. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
  48. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
  49. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +10 -3
  50. package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
  51. package/dist/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.d.ts +2 -2
  52. package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
  53. package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
  54. package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
  55. package/dist/components/TransactionStatus/AnimatedSpinner/AnimatedSpinner.d.ts +1 -1
  56. package/dist/components/TransactionStatus/StepSpinner.d.ts +1 -1
  57. package/dist/components/TransactionStatus/TransactionStatus.d.ts +2 -2
  58. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
  59. package/dist/consts/customers.d.ts +1 -1
  60. package/dist/domains/aave.d.ts +15 -10
  61. package/dist/domains/asset.d.ts +2 -2
  62. package/dist/domains/checkout.d.ts +1 -1
  63. package/dist/domains/checkoutErrors.d.ts +2 -2
  64. package/dist/domains/checkoutRecipient.d.ts +1 -1
  65. package/dist/domains/clientMetadata.d.ts +1 -1
  66. package/dist/domains/dynamicRouting.d.ts +1 -1
  67. package/dist/domains/fees.d.ts +3 -3
  68. package/dist/domains/paymentMethods.d.ts +1 -1
  69. package/dist/domains/quote.d.ts +5 -5
  70. package/dist/domains/quoteMode/exactOut.d.ts +1 -1
  71. package/dist/domains/quoteMode/resolveQuoteMode.d.ts +1 -1
  72. package/dist/domains/quoteMode/types.d.ts +2 -2
  73. package/dist/hooks/queries/useLightningQuote.d.ts +1 -1
  74. package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
  75. package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
  76. package/dist/hooks/queries/useRecentDeposits.d.ts +1 -1
  77. package/dist/hooks/queries/useWithdrawalQuote.d.ts +31 -31
  78. package/dist/hooks/track/WithdrawModalEvent.d.ts +9 -1
  79. package/dist/hooks/track/useTrack.d.ts +1 -1
  80. package/dist/hooks/useBluvo.d.ts +3 -3
  81. package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
  82. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -1
  83. package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
  84. package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
  85. package/dist/hooks/useCountdown.d.ts +1 -1
  86. package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
  87. package/dist/hooks/useExchangeOptions.d.ts +1 -1
  88. package/dist/hooks/useFrogAccount.d.ts +1 -1
  89. package/dist/hooks/useIsBlacklisted.d.ts +1 -1
  90. package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
  91. package/dist/hooks/useMinDeposit.d.ts +1 -1
  92. package/dist/hooks/useNewTokenBanner.d.ts +1 -1
  93. package/dist/hooks/useOnNewNotification.d.ts +1 -1
  94. package/dist/hooks/usePaymentMethodTabs.d.ts +1 -1
  95. package/dist/hooks/usePaymentSources.d.ts +2 -2
  96. package/dist/hooks/useRelayBypass.d.ts +1 -1
  97. package/dist/hooks/useStepQueryReadiness.d.ts +3 -3
  98. package/dist/hooks/useTokenAndChainDropdown.d.ts +1 -1
  99. package/dist/hooks/useTokenTransfer.d.ts +1 -1
  100. package/dist/hooks/useTokenTransferConfig.d.ts +1 -1
  101. package/dist/hooks/useUserIpInfo.d.ts +1 -1
  102. package/dist/index.css +11 -11
  103. package/dist/index.js +4373 -3881
  104. package/dist/interfaces/identity.d.ts +1 -1
  105. package/dist/modals/ChainModal/Chain.d.ts +1 -1
  106. package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
  107. package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
  108. package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
  109. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
  110. package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +2 -2
  111. package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
  112. package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
  113. package/dist/modals/CheckoutModal/ConfirmationStep/mapRetryAction.d.ts +1 -1
  114. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
  115. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +2 -2
  116. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
  117. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
  118. package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
  119. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  120. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
  121. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -3
  122. package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +3 -3
  123. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
  124. package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
  125. package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +2 -2
  126. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
  127. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
  128. package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +1 -1
  129. package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoiceQrCode.d.ts +1 -1
  130. package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
  131. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  132. package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
  133. package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +4 -4
  134. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetInfoSection.d.ts +2 -2
  135. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +2 -2
  136. package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +1 -1
  137. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -2
  138. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -2
  139. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +1 -1
  140. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeController.d.ts +2 -2
  141. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
  142. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
  143. package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
  144. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
  145. package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
  146. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
  147. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
  148. package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
  149. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
  150. package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
  151. package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
  152. package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +2 -2
  153. package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +2 -2
  154. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
  155. package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
  156. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
  157. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
  158. package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +2 -2
  159. package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
  160. package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +2 -2
  161. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +29 -8
  162. package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +1 -1
  163. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +11 -2
  164. package/dist/modals/WithdrawalModal/WithdrawalCallbackSuccess.d.ts +1 -1
  165. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +9 -2
  166. package/dist/modals/WithdrawalModal/WithdrawalModal.d.ts +1 -1
  167. package/dist/modals/WithdrawalModal/WithdrawalSwappedIframeController.d.ts +11 -0
  168. package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +1 -1
  169. package/dist/modals/WithdrawalModal/types.d.ts +1 -0
  170. package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +3 -3
  171. package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
  172. package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -1
  173. package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
  174. package/dist/providers/FunkitCheckoutContext/types.d.ts +30 -0
  175. package/dist/providers/FunkitConfigContext.d.ts +3 -3
  176. package/dist/providers/FunkitHistoryContext.d.ts +2 -2
  177. package/dist/providers/FunkitProvider.d.ts +2 -2
  178. package/dist/providers/FunkitQuoteContext.track.d.ts +4 -4
  179. package/dist/providers/GeneralWalletProvider.d.ts +2 -2
  180. package/dist/providers/QuoteModeContext.d.ts +1 -1
  181. package/dist/providers/SwappedProvider.d.ts +1 -1
  182. package/dist/utils/assets.d.ts +1 -1
  183. package/dist/utils/bluvo.d.ts +3 -3
  184. package/dist/utils/checkout.d.ts +3 -3
  185. package/dist/utils/customer.d.ts +6 -0
  186. package/dist/utils/depositCutoff.d.ts +1 -1
  187. package/dist/utils/funkitProvider.d.ts +1 -1
  188. package/dist/utils/payment.d.ts +1 -1
  189. package/dist/utils/polygonRpcCheck.d.ts +1 -1
  190. package/dist/utils/purifyCheckoutHistoryItem.d.ts +1 -1
  191. package/dist/utils/swapped.d.ts +1 -1
  192. package/dist/utils/withdrawal.d.ts +1 -1
  193. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  194. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  195. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  196. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  197. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  198. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  199. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  200. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  201. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  202. package/dist/wallets/walletConnectors/index.js +59 -59
  203. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  204. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  205. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  206. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  207. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  208. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  209. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  210. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  211. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  212. package/package.json +4 -4
  213. package/dist/__generated__/default_configs.d.ts +0 -901
  214. package/dist/__generated__/default_feature_gates.d.ts +0 -20
  215. package/dist/clients/chunk-25ICASD7.js +0 -2371
  216. package/dist/clients/chunk-3GO74QTP.js +0 -2382
  217. package/dist/clients/chunk-7GWX2ZS4.js +0 -69
  218. package/dist/clients/chunk-7HNGV6JU.js +0 -54
  219. package/dist/clients/chunk-CEBG7XQ5.js +0 -2382
  220. package/dist/clients/chunk-ELLXM7RO.js +0 -186
  221. package/dist/clients/chunk-GGXTLJ7J.js +0 -290
  222. package/dist/clients/chunk-HRWCNZJA.js +0 -230
  223. package/dist/clients/chunk-JD3FIVZ7.js +0 -69
  224. package/dist/clients/chunk-JTGKAPID.js +0 -2382
  225. package/dist/clients/chunk-L7PABCF2.js +0 -54
  226. package/dist/clients/chunk-LII3SVUH.js +0 -230
  227. package/dist/clients/chunk-NCUPPJ2Z.js +0 -2382
  228. package/dist/clients/chunk-NUJ6ZM5F.js +0 -186
  229. package/dist/clients/chunk-UVWNEQMD.js +0 -186
  230. package/dist/clients/chunk-ZNVFASTH.js +0 -54
  231. package/dist/clients/nado.d.ts +0 -78
  232. package/dist/clients/nado.js +0 -107
  233. package/dist/clients/polymarket.d.ts +0 -161
  234. package/dist/clients/polymarket.js +0 -688
  235. package/dist/interfaces/logTransport.d.ts +0 -51
  236. package/dist/interfaces/swapped-transport.d.ts +0 -78
  237. package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +0 -4
  238. package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +0 -4
  239. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +0 -6
  240. package/dist/utils/flags/resolver.d.ts +0 -34
  241. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +0 -70
  242. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +0 -69
  243. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +0 -96
  244. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +0 -218
  245. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +0 -99
  246. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +0 -98
  247. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +0 -92
  248. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +0 -93
  249. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +0 -66
  250. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +0 -95
  251. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +0 -100
  252. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +0 -94
  253. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +0 -87
  254. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +0 -92
  255. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +0 -110
  256. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +0 -103
  257. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +0 -96
  258. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +0 -106
@@ -5,9 +5,27 @@
5
5
  */
6
6
  import type { LighterAccountIndex } from '@funkit/api-base';
7
7
  import React from 'react';
8
- import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
9
- import type { LighterShare } from '~/utils/customer';
8
+ import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
9
+ import type { LighterShare } from '../../utils/customer';
10
10
  import type { SourceTokenOption } from './WithdrawAmountInput';
11
+ /** Stable method ids for the Fast / Secure options (used for tracking + switching). */
12
+ export declare const LIGHTER_FAST_METHOD_ID = "lighter-fast";
13
+ export declare const LIGHTER_SECURE_METHOD_ID = "lighter-secure";
14
+ /**
15
+ * Upper bound on a single Lighter Fast withdrawal, in USD. Amounts above this
16
+ * block the CTA and surface the "submit a Secure withdrawal" footer. Fast is
17
+ * USDC Perps only (price = 1), so this is also the token-unit cap.
18
+ * {@link LIGHTER_FAST_MAX_WITHDRAWAL_LABEL} must stay in sync with this value.
19
+ */
20
+ export declare const LIGHTER_FAST_MAX_WITHDRAWAL_USD = 3000000;
21
+ /**
22
+ * Footer shown beneath the CTA when a Lighter Fast amount exceeds the $3M cap.
23
+ * Renders as the `description` of a FunNotification, which supplies the shared
24
+ * notification typography; offers an inline link to switch to the Secure method.
25
+ */
26
+ export declare function LighterFastMaxExceededMessage({ onSwitchToSecure, }: {
27
+ onSwitchToSecure: () => void;
28
+ }): React.JSX.Element;
11
29
  /** Free (withdrawable) balance for a single Lighter asset: balance - locked. */
12
30
  export declare function freeBalance(balance: string, lockedBalance: string): string;
13
31
  /**
@@ -47,7 +65,7 @@ export declare function useLighterWithdrawalBalances({ accountIndex, }: {
47
65
  accountIndex: LighterAccountIndex | undefined;
48
66
  }): {
49
67
  balances: Record<string, string>;
50
- assets: import("~/utils/customer").LighterAsset[];
68
+ assets: import("../../utils/customer").LighterAsset[];
51
69
  shares: LighterShare[];
52
70
  isLoading: boolean;
53
71
  };
@@ -82,8 +100,9 @@ export declare function useLighterWithdrawal(config: FunkitWithdrawalConfig, set
82
100
  isLighterFast: boolean;
83
101
  connectedAddress: `0x${string}` | undefined;
84
102
  lighterBalances: Record<string, string>;
85
- lighterAssets: import("~/utils/customer").LighterAsset[];
103
+ lighterAssets: import("../../utils/customer").LighterAsset[];
86
104
  lighterFastUnstakedFee: number;
105
+ invalidateLighterAccount: () => void;
87
106
  };
88
107
  /**
89
108
  * Resolves the source-token dropdown options for a Lighter customer.
@@ -93,15 +112,17 @@ export declare function useLighterSourceTokenOptions(config: FunkitWithdrawalCon
93
112
  symbol: string;
94
113
  }[]): SourceTokenOption[] | undefined;
95
114
  /**
96
- * Lighter Secure: read-only recipient address display.
97
- * The address is locked to the connected wallet.
115
+ * Lighter Secure: recipient address, locked to the connected wallet. A
116
+ * read-only `FunInput` (not a `<div>`) keeps it focusable and announced by
117
+ * screen readers; the hover tooltip explains the lock.
98
118
  */
99
119
  export declare function LighterSecureAddressDisplay({ address }: {
100
120
  address: string;
101
121
  }): React.JSX.Element;
102
122
  /**
103
- * Lighter Secure: display-only receive token + chain. Both are locked —
104
- * token matches the source asset, chain is always Ethereum mainnet.
123
+ * Lighter Secure: display-only receive token + chain. Both are locked — the
124
+ * token always matches the source asset, and the destination chain is always
125
+ * Ethereum mainnet. Each field surfaces a hover tooltip explaining the lock.
105
126
  */
106
127
  export declare function LighterSecureReceiveDisplay({ sourceTokenSymbol, }: {
107
128
  sourceTokenSymbol: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
2
+ import type { FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
3
  export declare function WithdrawRecipientAddress({ config, recipientAddress, setRecipientAddress, selectedChainId, selectedToken, isValidAddress, isRiskyAddress, }: {
4
4
  config: FunkitWithdrawalConfig;
5
5
  recipientAddress: string;
@@ -1,18 +1,27 @@
1
1
  import React from 'react';
2
- import type { FunkitWithdrawalConfig, MultiMethodWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
2
+ import type { FunkitWithdrawalConfig, MultiMethodWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
3
  export interface SourceTokenOption {
4
4
  symbol: string;
5
5
  /** Display label (may differ from symbol, e.g. "USDC (Perps)") */
6
6
  label: string;
7
7
  iconSrc?: string;
8
8
  }
9
- export declare function WithdrawAmountInput({ withdrawalInputAmount, setWithdrawalInputAmount, sourceTokenBalance, isWithdrawAmountTooLow, isWithdrawAmountValid, minWithdrawalDisplayValue, config, sourceTokenOptions, onSourceTokenChange, selectedSourceToken, sourceTokenUsdPrice, }: {
9
+ export declare function WithdrawAmountInput({ withdrawalInputAmount, setWithdrawalInputAmount, sourceTokenBalance, isWithdrawAmountTooLow, isWithdrawAmountTooHigh, isWithdrawAmountAboveBalance, isWithdrawAmountValid, minWithdrawalDisplayValue, config, sourceTokenOptions, onSourceTokenChange, selectedSourceToken, sourceTokenUsdPrice, }: {
10
10
  config: Exclude<FunkitWithdrawalConfig, MultiMethodWithdrawalConfig>;
11
11
  sourceTokenBalance: string;
12
12
  /** User-entered amount in source-token units (e.g. "0.5" for 0.5 ETH). */
13
13
  withdrawalInputAmount: string;
14
14
  setWithdrawalInputAmount: (s: string) => void;
15
15
  isWithdrawAmountTooLow: boolean;
16
+ /**
17
+ * Amount exceeds the configured max. The over-cap explanation lives in the
18
+ * bottom-bar footer, so the inline input error is suppressed — but only when
19
+ * the amount is otherwise affordable. If it also exceeds the balance,
20
+ * "Insufficient balance" still shows (see below).
21
+ */
22
+ isWithdrawAmountTooHigh: boolean;
23
+ /** Amount exceeds the available balance — takes priority over the over-cap hint. */
24
+ isWithdrawAmountAboveBalance: boolean;
16
25
  isWithdrawAmountValid: boolean;
17
26
  /**
18
27
  * Minimum-withdrawal value formatted for display. Token units when the
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
2
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
3
  interface WithdrawalCallbackSuccessProps {
4
4
  bottomBarId: string;
5
5
  onClose: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Hex } from 'viem';
3
- import type { CustomWithdrawalConfig, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, WalletWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
3
+ import type { CustomWithdrawalConfig, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
4
4
  import { type WithdrawalFormData } from './useWithdrawal';
5
5
  /**
6
6
  * WithdrawalContent only operates on concrete single-method withdrawal configs.
@@ -11,6 +11,11 @@ interface WithdrawContentProps {
11
11
  onContinue: (withdrawal: WithdrawalFormData, txHash: Hex) => void;
12
12
  config: FunkitWithdrawalConfig;
13
13
  withdrawalItem: FunkitActiveWithdrawalItem | null;
14
+ /**
15
+ * Switch a Lighter Fast withdrawal to the Lighter Secure method. Wired by
16
+ * {@link WithdrawalModal}; used by the over-$3M footer.
17
+ */
18
+ onSwitchToSecure?: () => void;
14
19
  }
15
20
  /**
16
21
  * Converts a source-token amount string to its USD value using the given unit
@@ -40,6 +45,8 @@ export declare function isValidWithdrawal({ config, checkoutConfig, withdrawalIn
40
45
  isValidAddress: boolean;
41
46
  isValidAddressAndChain: boolean;
42
47
  isWithdrawAmountTooLow: boolean;
48
+ isWithdrawAmountTooHigh: boolean;
49
+ isWithdrawAmountAboveBalance: boolean;
43
50
  isWithdrawAmountValid: boolean;
44
51
  minWithdrawalDisplayValue: number;
45
52
  };
@@ -55,5 +62,5 @@ export declare const useFrozenSourceTokenBalance: ({ isWithdrawing, sourceTokenB
55
62
  * Currently returns a single option per config; expands when Lighter exposes
56
63
  * multi-asset API support.
57
64
  */
58
- export declare const WithdrawContent: ({ onContinue, config, withdrawalItem, }: WithdrawContentProps) => React.JSX.Element;
65
+ export declare const WithdrawContent: ({ onContinue, config, withdrawalItem, onSwitchToSecure, }: WithdrawContentProps) => React.JSX.Element;
59
66
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
2
+ import type { FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
3
  export declare const WITHDRAWAL_MODAL_CONTENT_ID = "withdrawal-modal-content";
4
4
  export interface WithdrawalModalProps {
5
5
  open: boolean;
@@ -0,0 +1,11 @@
1
+ import type { SwappedFormOfPayment } from '@funkit/api-base';
2
+ import React from 'react';
3
+ interface WithdrawalSwappedIframeControllerProps {
4
+ selectedFop: SwappedFormOfPayment;
5
+ isError: boolean;
6
+ onError: () => void;
7
+ onBack: () => void;
8
+ onClose: () => void;
9
+ }
10
+ export declare function WithdrawalSwappedIframeController({ selectedFop, isError, onError, onBack, onClose, }: WithdrawalSwappedIframeControllerProps): React.JSX.Element;
11
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithdrawalMethodOption } from '~/providers/FunkitCheckoutContext/types';
2
+ import type { WithdrawalMethodOption } from '../../providers/FunkitCheckoutContext/types';
3
3
  interface WithdrawalTypeSelectProps {
4
4
  /** Section label shown above the list (e.g. "Crypto"). */
5
5
  sectionTitle?: string;
@@ -1,6 +1,7 @@
1
1
  export declare enum WithdrawalModalStep {
2
2
  SELECT_METHOD = "SELECT_METHOD",
3
3
  ENTER_AMOUNT = "ENTER_AMOUNT",
4
+ SWAPPED_IFRAME = "SWAPPED_IFRAME",
4
5
  SUCCESS = "SUCCESS",
5
6
  PENDING_CALLBACK = "PENDING_CALLBACK"
6
7
  }
@@ -1,7 +1,7 @@
1
1
  import type { Address, Hex } from 'viem';
2
- import { type CheckoutConfirmationError } from '~/domains/checkoutErrors';
3
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
4
- import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
2
+ import { type CheckoutConfirmationError } from '../../domains/checkoutErrors';
3
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
4
+ import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
5
5
  interface UseWithdrawalResult {
6
6
  handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<void>;
7
7
  isWithdrawing: boolean;
@@ -1,7 +1,7 @@
1
1
  import { type UseBluvoFlowHook } from '@bluvo/react';
2
2
  import React, { type ReactNode } from 'react';
3
- import { type BluvoBrokerageMinMax, type BluvoExchangeType } from '~/consts/bluvo';
4
- import type { BrokerageAssetHoldingsItem } from '~/domains/wallet';
3
+ import { type BluvoBrokerageMinMax, type BluvoExchangeType } from '../consts/bluvo';
4
+ import type { BrokerageAssetHoldingsItem } from '../domains/wallet';
5
5
  type BluvoLocalStorageData = Partial<Record<BluvoExchangeType, string>>;
6
6
  interface FunkitBrokerageContextProps {
7
7
  bluvoClient: UseBluvoFlowHook;
@@ -1,6 +1,6 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  import type { Address } from 'viem';
3
- import { type ApplyDynamicRoutingPath } from '~/domains/dynamicRouting';
3
+ import { type ApplyDynamicRoutingPath } from '../../domains/dynamicRouting';
4
4
  import { type PaymentMethodInfo } from '../../domains/paymentMethods';
5
5
  import type { AssetHoldingsItem } from '../../utils/assets';
6
6
  import type { WithdrawalClient, WithdrawalTransaction } from '../../wallets/Wallet';
@@ -1,8 +1,8 @@
1
1
  import type { RelayTxHash, RelayVmType } from '@funkit/fun-relay';
2
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
3
- import { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
4
- import type { WithdrawModalEvent } from '~/hooks/track/WithdrawModalEvent';
5
- import type { TrackEventData } from '~/hooks/track/useTrack';
2
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
+ import { CheckoutModalEvent } from '../../hooks/track/CheckoutModalEvent';
4
+ import type { WithdrawModalEvent } from '../../hooks/track/WithdrawModalEvent';
5
+ import type { TrackEventData } from '../../hooks/track/useTrack';
6
6
  import type { FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem } from './index';
7
7
  export declare const trackEventFromActiveItem: (activeItem: FunkitActiveCheckoutItem | FunkitActiveWithdrawalItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
8
8
  export declare const trackEventFromDirectExecutionConfirmed: ({ txHash, checkoutItem, latestQuote, }: {
@@ -116,6 +116,20 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
116
116
  /** Whether the supply is/will be enabled as collateral for the user. */
117
117
  collateralizationEnabled?: boolean;
118
118
  };
119
+ /**
120
+ * Integrator-provided health-factor resolver for a lending supply (e.g. Aave).
121
+ * The SDK never computes health factor — the integrator owns the math (run
122
+ * against live position data with the protocol's own library, e.g.
123
+ * `@aave/math-utils`) so it matches the protocol app exactly. The SDK calls
124
+ * this at the confirmation step with the live supply amount (the target
125
+ * asset, human units) and renders the result as a Health factor (before →
126
+ * after) row. Return `null` when the position data isn't ready, or for an
127
+ * infinite/no-debt health factor return `"-1"` (rendered as ∞).
128
+ */
129
+ resolveHealthFactor?: (targetAssetHumanAmount: string) => {
130
+ before: string | null;
131
+ after: string | null;
132
+ } | null;
119
133
  /** Icon to show in the checkout modal (50px x 50px). If not specified, no icon will be shown. **/
120
134
  iconSrc?: null | string;
121
135
  /** Title of the item being checked out. e.g. Staked Ether, XYZ Option, Solar Bond ABC **/
@@ -197,12 +211,28 @@ export interface WithdrawalConfigBase {
197
211
  * Used when the source token can vary (e.g. Lighter Secure withdrawal).
198
212
  */
199
213
  getMinWithdrawalAmount?: (symbol: string) => number;
214
+ /**
215
+ * Maximum USD value allowed for a single withdrawal. Amounts above this block
216
+ * the CTA (which switches to "Max amount exceeded"). Omit for no upper bound.
217
+ * Mirrors {@link getMinWithdrawalUSD}.
218
+ */
219
+ getMaxWithdrawalUSD?: (asset: TokenInfo) => number;
200
220
  /**
201
221
  * Returns the current withdrawable balance for the source token.
202
222
  * Called on every render — use a ref-backed stable callback so the value
203
223
  * stays live without triggering unnecessary re-renders.
204
224
  */
205
225
  withdrawalSourceTokenBalance?: () => string | number;
226
+ /**
227
+ * Optional async hook fired when the user commits to the withdrawal — after
228
+ * the withdraw CTA, but before any nonce fetch, wallet signature, or tx
229
+ * submission. Awaited, so async work completes before signing begins.
230
+ *
231
+ * Throw to abort: the error message is surfaced to the user verbatim and no
232
+ * nonce is consumed. Runs on every withdrawal method, before
233
+ * {@link WalletWithdrawalConfig.preWithdrawalAction}.
234
+ */
235
+ onBeforeSign?: () => Promise<void> | void;
206
236
  }
207
237
  export interface WalletWithdrawalConfig extends WithdrawalConfigBase {
208
238
  /** Wallet instance used to execute the quote */
@@ -1,7 +1,7 @@
1
1
  import { type ComponentType, type JSX, type ReactNode } from 'react';
2
- import type { BluvoExchangeType } from '~/consts/bluvo';
3
- import type { PaymentMethod } from '~/domains/paymentMethods';
4
- import type { SourceChangeTopComponentProps } from '~/modals/CheckoutModal/stepTransition';
2
+ import type { BluvoExchangeType } from '../consts/bluvo';
3
+ import type { PaymentMethod } from '../domains/paymentMethods';
4
+ import type { SourceChangeTopComponentProps } from '../modals/CheckoutModal/stepTransition';
5
5
  export interface FunkitTextCustomizationsConfig {
6
6
  virtualFiat: string;
7
7
  brokerageOrExchange: string;
@@ -3,8 +3,8 @@ import React, { type ReactNode } from 'react';
3
3
  import type { Address, Hex } from 'viem';
4
4
  import { type MergedCheckoutHistoryItem } from '../utils/checkout';
5
5
  import { type PurifiedCheckoutHistoryItem } from '../utils/purifyCheckoutHistoryItem';
6
- export type { HistoricalCheckoutItem, ServerCheckoutConfig, } from '~/domains/clientMetadata';
7
- export type { FunkitCheckoutQuoteResult } from '~/domains/quote';
6
+ export type { HistoricalCheckoutItem, ServerCheckoutConfig, } from '../domains/clientMetadata';
7
+ export type { FunkitCheckoutQuoteResult } from '../domains/quote';
8
8
  interface FunkitCheckoutHistoryContextInterface {
9
9
  checkoutHistoryList: MergedCheckoutHistoryItem[];
10
10
  isCheckoutHistoryInited: boolean;
@@ -1,7 +1,7 @@
1
1
  import { type QueryClient } from '@tanstack/react-query';
2
2
  import React, { type ReactNode } from 'react';
3
- import type { Chain } from '~/wagmi/chains';
4
- import type { Locale } from '~/locales';
3
+ import type { Chain } from '../wagmi/chains';
4
+ import type { Locale } from '../locales';
5
5
  import { type CreateFunkitWagmiConfigParameters } from '../config/getDefaultConfig';
6
6
  import { type AvatarComponent } from './AvatarContext';
7
7
  import { type FunkitConfig } from './FunkitConfigContext';
@@ -1,7 +1,7 @@
1
- import type { QuoteMode } from '~/domains/quoteMode';
2
- import type { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
3
- import type { WithdrawModalEvent } from '~/hooks/track/WithdrawModalEvent';
4
- import type { TrackEventData } from '~/hooks/track/useTrack';
1
+ import type { QuoteMode } from '../domains/quoteMode';
2
+ import type { CheckoutModalEvent } from '../hooks/track/CheckoutModalEvent';
3
+ import type { WithdrawModalEvent } from '../hooks/track/WithdrawModalEvent';
4
+ import type { TrackEventData } from '../hooks/track/useTrack';
5
5
  import type { FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
6
6
  import type { FunkitCheckoutQuoteResult } from './FunkitHistoryContext';
7
7
  export declare const trackEventFromBaseQuote: (checkoutItem: FunkitActiveCheckoutItem, eventName: CheckoutModalEvent | WithdrawModalEvent, quoteMode?: QuoteMode) => TrackEventData;
@@ -1,8 +1,8 @@
1
1
  import type { AssetBalanceInfo } from '@funkit/api-base';
2
2
  import React, { type ReactNode } from 'react';
3
3
  import type { Address } from 'viem';
4
- import type { IdentityProvider } from '~/interfaces/identity';
5
- import { type UseDisconnectReturnType, type UseReconnectReturnType } from '~/wagmi/hooks';
4
+ import type { IdentityProvider } from '../interfaces/identity';
5
+ import { type UseDisconnectReturnType, type UseReconnectReturnType } from '../wagmi/hooks';
6
6
  import { type FunkitUserInfo } from '../consts/funkit';
7
7
  import { LoginType } from '../utils/userInfo';
8
8
  /** AssetBalanceInfo with known price and totalUsdValue */
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { type QuoteBuilder } from '~/domains/quoteMode';
2
+ import { type QuoteBuilder } from '../domains/quoteMode';
3
3
  export declare function QuoteModeProvider({ children }: {
4
4
  children: ReactNode;
5
5
  }): React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { FormOfPaymentType } from '@funkit/api-base';
2
2
  import { type SwappedTransport } from '@funkit/connect-core';
3
3
  import React from 'react';
4
- import { type SwappedTheme } from '~/utils/swapped';
4
+ import { type SwappedTheme } from '../utils/swapped';
5
5
  interface SwappedContextValue {
6
6
  iframeUrl: string | null;
7
7
  isSwappedReady: boolean;
@@ -1,4 +1,4 @@
1
1
  import type { DynamicTargetAssetCandidate, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
- export type { AssetHoldingsItem, AssetHoldingsMap, KnownAssetHoldingsItem, } from '~/domains/wallet';
2
+ export type { AssetHoldingsItem, AssetHoldingsMap, KnownAssetHoldingsItem, } from '../domains/wallet';
3
3
  export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number | string, decimals: number) => number;
4
4
  export declare const getDefaultDynamicTargetAsset: (checkoutConfig: FunkitCheckoutConfig | undefined) => DynamicTargetAssetCandidate;
@@ -1,9 +1,9 @@
1
1
  import type { WalletwithdrawbalancebalanceResponse } from '@bluvo/sdk-ts';
2
2
  type WithdrawableBalance = WalletwithdrawbalancebalanceResponse['balances'][number];
3
3
  import { type BluvoExecuteWithdrawalResponse, BluvoWithdrawalError } from '@funkit/api-base';
4
- import type { BluvoExchangeType } from '~/consts/bluvo';
5
- import type { AssetHoldingsItem, AssetHoldingsMap, BrokerageAssetHoldingsItem } from '~/domains/wallet';
6
- import { type MinTransferConfig } from '~/hooks/useTokenTransfer';
4
+ import type { BluvoExchangeType } from '../consts/bluvo';
5
+ import type { AssetHoldingsItem, AssetHoldingsMap, BrokerageAssetHoldingsItem } from '../domains/wallet';
6
+ import { type MinTransferConfig } from '../hooks/useTokenTransfer';
7
7
  export declare const isBrokerageAsset: (asset: AssetHoldingsItem) => asset is BrokerageAssetHoldingsItem & {
8
8
  usdAmount: number;
9
9
  };
@@ -2,9 +2,9 @@ export { isCheckoutHistoryDirectExecution, isCheckoutValid, type MergedCheckoutH
2
2
  import { type ApiFunkitCheckoutQuoteResult, type CheckoutQuoteResponse } from '@funkit/utils';
3
3
  import type { Dnum } from 'dnum';
4
4
  import { type Address } from 'viem';
5
- import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
6
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
7
- import type { Config, UseConfigReturnType } from '~/wagmi/hooks';
5
+ import type { ServerCheckoutConfig } from '../domains/clientMetadata';
6
+ import type { FunkitCheckoutQuoteResult } from '../domains/quote';
7
+ import type { Config, UseConfigReturnType } from '../wagmi/hooks';
8
8
  import { type FunkitCheckoutActionParams, type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
9
9
  export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
10
10
  export declare const BROKERAGE_TIME_ESTIMATE_MS = 0;
@@ -414,3 +414,9 @@ export declare function useLighterAccounts({ address, }: {
414
414
  fetchStatus: import("@tanstack/react-query").FetchStatus;
415
415
  promise: Promise<LighterAccountsByL1AddressResponse>;
416
416
  };
417
+ /**
418
+ * Returns a callback that invalidates the cached Lighter account queries so the
419
+ * balance refetches eagerly (e.g. right after a withdrawal). No-op for
420
+ * non-Lighter customers.
421
+ */
422
+ export declare function useInvalidateLighterAccount(): () => void;
@@ -1,5 +1,5 @@
1
1
  import type { CheckoutQuoteResponse } from '@funkit/utils';
2
- import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
2
+ import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
3
3
  export declare const DEFAULT_TX_DELAYED_CUTOFF = 60;
4
4
  /**
5
5
  * Returns the delayed auto trigger cutoff (in seconds) for slow deposits.
@@ -1,4 +1,4 @@
1
- import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
1
+ import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
2
  import type { FunkitProviderProps } from '../providers/FunkitProvider';
3
3
  export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number | undefined;
4
4
  export declare function generateSyntheticUserId(apiKey: string, externalUserId: string): string;
@@ -1,4 +1,4 @@
1
- import { LoginType } from '~/providers/GeneralWalletProvider';
1
+ import { LoginType } from '../providers/GeneralWalletProvider';
2
2
  import { type PaymentMethodInfo } from '../domains/paymentMethods';
3
3
  /**
4
4
  * Generate a string for backend to indicate the source of a checkout funds
@@ -1,4 +1,4 @@
1
- import type { Connector } from '~/wagmi/hooks';
1
+ import type { Connector } from '../wagmi/hooks';
2
2
  export declare const POLYGON_CHAIN_ID = 137;
3
3
  /**
4
4
  * Checks if the user's wallet RPC for Polygon is responsive by sending an eth_blockNumber call.
@@ -1,7 +1,7 @@
1
1
  import { type CheckoutHistoryItem, type CheckoutState } from '@funkit/api-base';
2
2
  import type { ApiFunkitCheckoutActionParams } from '@funkit/utils';
3
3
  import type { Address, Hex } from 'viem';
4
- import type { MergedMultiStepDirectExecution } from '~/domains/checkoutNotifications';
4
+ import type { MergedMultiStepDirectExecution } from '../domains/checkoutNotifications';
5
5
  export type PurifiedCheckoutHistoryItem = {
6
6
  depositAddr?: Address;
7
7
  directExecution: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { SwappedTheme } from '@funkit/connect-core';
2
- import type { ThemeVars } from '~/css/sprinkles.css';
2
+ import type { ThemeVars } from '../css/sprinkles.css';
3
3
  export { getSavedFormOfPaymentDisplayName, getSavedFormOfPaymentIcon, getSwappedIcon, getSwappedOrigin, isSavedFormOfPaymentType, isSwappedOrigin, SWAPPED_CARD_BRANDS, } from '@funkit/connect-core';
4
4
  export type { SwappedTheme };
5
5
  export declare function resolveCssValue(value: string): string;
@@ -1,4 +1,4 @@
1
- import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, MultiMethodWithdrawalConfig, WalletWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
1
+ import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, MultiMethodWithdrawalConfig, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext';
2
2
  /**
3
3
  * Type guard to check if withdrawal config uses wallet-based flow
4
4
  */
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-4T6ZSRJF.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-IULPZP2Q.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-CPI4TD43.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-TKB2OY6G.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-F5XEEVG6.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-OX37G4YT.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bybitWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-UK7C2JXW.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-OEEGYENV.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  clvWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-6BW3HLBG.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-WAHGI5L7.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  coin98Wallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-RB3HR4R2.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-4NV5BYRP.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  coreWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-MIQTHJ6X.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-GUQM4QSL.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  foxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-YEZM4CK4.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-AVDUNQUW.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  frontierWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-HNRB7KJU.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-JPN6TWIT.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  gateWallet