@liberfi.io/ui-trade 2.0.13 → 3.0.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.
package/README.md CHANGED
@@ -62,20 +62,20 @@ Polls for swap route quotes at a configurable interval. Built on `useSwapRouteQu
62
62
 
63
63
  **Parameters:**
64
64
 
65
- | Name | Type | Description |
66
- | ------------------ | ------------------------- | ---------------------------------------------------------------------- |
67
- | `params` | `Partial<API.SwapParams>` | Route parameters. Polling starts when all required fields are present. |
68
- | `options.interval` | `number` | Polling interval in ms. Defaults to 12000. |
69
- | `options.paused` | `boolean` | Pause polling (e.g. during swap execution). |
70
- | `options.onError` | `(error: Error) => void` | Called when a route fetch fails. |
65
+ | Name | Type | Description |
66
+ | ------------------ | ------------------------ | ---------------------------------------------------------------------- |
67
+ | `params` | `Partial<SwapParams>` | Route parameters. Polling starts when all required fields are present. |
68
+ | `options.interval` | `number` | Polling interval in ms. Defaults to 12000. |
69
+ | `options.paused` | `boolean` | Pause polling (e.g. during swap execution). |
70
+ | `options.onError` | `(error: Error) => void` | Called when a route fetch fails. |
71
71
 
72
72
  **Returns:** `{ route, isRouting, error }`
73
73
 
74
- | Name | Type | Description |
75
- | ----------- | ---------------------------- | --------------------------------- |
76
- | `route` | `API.SwapRoute \| undefined` | Current route quote. |
77
- | `isRouting` | `boolean` | Whether a route is being fetched. |
78
- | `error` | `Error \| null` | Latest route fetch error. |
74
+ | Name | Type | Description |
75
+ | ----------- | ------------------------ | --------------------------------- |
76
+ | `route` | `SwapRoute \| undefined` | Current route quote. |
77
+ | `isRouting` | `boolean` | Whether a route is being fetched. |
78
+ | `error` | `Error \| null` | Latest route fetch error. |
79
79
 
80
80
  #### `useTxConfirmation(options?: UseTxConfirmationOptions)`
81
81
 
@@ -159,7 +159,7 @@ Script layer hook. Encapsulates all data fetching, state management, and swap ex
159
159
  | `amountInUsd` | `string \| undefined` | Amount in USD. |
160
160
  | `outputAmount` | `string \| undefined` | Formatted output amount from route. |
161
161
  | `outputAmountInUsd` | `string \| undefined` | Output amount in USD. |
162
- | `route` | `API.SwapRoute \| undefined` | Current route quote. |
162
+ | `route` | `SwapRoute \| undefined` | Current route quote. |
163
163
  | `isRouting` | `boolean` | Whether a route is being fetched. |
164
164
  | `routeError` | `Error \| null` | Route fetch error. |
165
165
  | `swap` | `() => Promise<void>` | Execute the swap. |
@@ -188,7 +188,7 @@ Pure presentational component for the swap form. Renders the From/To token input
188
188
  | `outputAmountInUsd` | `string \| undefined` | Output amount in USD. |
189
189
  | `onFromTokenSelect` | `(addr: string) => void` | From-token selection handler. |
190
190
  | `onToTokenSelect` | `(addr: string) => void` | To-token selection handler. |
191
- | `route` | `API.SwapRoute \| undefined` | Current swap route quote. |
191
+ | `route` | `SwapRoute \| undefined` | Current swap route quote. |
192
192
  | `isRouting` | `boolean` | Whether a route is being fetched. |
193
193
  | `routeError` | `Error \| null` | Route error. |
194
194
  | `onPreview` | `() => void` | Open preview modal handler. |
@@ -201,22 +201,22 @@ Modal component that previews swap details before confirmation. Shows from/to to
201
201
 
202
202
  **Props (`SwapPreviewModalProps`):**
203
203
 
204
- | Name | Type | Description |
205
- | ------------------- | ---------------------------- | --------------------------------- |
206
- | `isOpen` | `boolean` | Whether the modal is open. |
207
- | `onOpenChange` | `(isOpen: boolean) => void` | Modal open/close handler. |
208
- | `fromToken` | `Token \| null` | From-token metadata. |
209
- | `toToken` | `Token \| null` | To-token metadata. |
210
- | `fromBalance` | `Portfolio \| null` | User's from-token balance. |
211
- | `inputAmount` | `string \| undefined` | Input amount (human-readable). |
212
- | `inputAmountInUsd` | `string \| undefined` | Input amount in USD. |
213
- | `outputAmount` | `string \| undefined` | Output amount (human-readable). |
214
- | `outputAmountInUsd` | `string \| undefined` | Output amount in USD. |
215
- | `route` | `API.SwapRoute \| undefined` | Current swap route. |
216
- | `isRouting` | `boolean` | Whether a route is being fetched. |
217
- | `routeError` | `Error \| null` | Route error. |
218
- | `onConfirm` | `() => void` | Confirm swap handler. |
219
- | `isSwapping` | `boolean` | Whether a swap is in progress. |
204
+ | Name | Type | Description |
205
+ | ------------------- | --------------------------- | --------------------------------- |
206
+ | `isOpen` | `boolean` | Whether the modal is open. |
207
+ | `onOpenChange` | `(isOpen: boolean) => void` | Modal open/close handler. |
208
+ | `fromToken` | `Token \| null` | From-token metadata. |
209
+ | `toToken` | `Token \| null` | To-token metadata. |
210
+ | `fromBalance` | `Portfolio \| null` | User's from-token balance. |
211
+ | `inputAmount` | `string \| undefined` | Input amount (human-readable). |
212
+ | `inputAmountInUsd` | `string \| undefined` | Input amount in USD. |
213
+ | `outputAmount` | `string \| undefined` | Output amount (human-readable). |
214
+ | `outputAmountInUsd` | `string \| undefined` | Output amount in USD. |
215
+ | `route` | `SwapRoute \| undefined` | Current swap route. |
216
+ | `isRouting` | `boolean` | Whether a route is being fetched. |
217
+ | `routeError` | `Error \| null` | Route error. |
218
+ | `onConfirm` | `() => void` | Confirm swap handler. |
219
+ | `isSwapping` | `boolean` | Whether a swap is in progress. |
220
220
 
221
221
  ### Types
222
222
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _liberfi_io_types from '@liberfi.io/types';
2
- import { Chain, API, Token, Portfolio } from '@liberfi.io/types';
2
+ import { Chain, SwapMode, SwapParams, Token, Portfolio, SwapRoute } from '@liberfi.io/types';
3
3
  import * as jotai_family from 'jotai-family';
4
4
  import * as jotai from 'jotai';
5
5
  import * as jotai_utils from 'jotai/utils';
@@ -68,7 +68,7 @@ interface SwapInput {
68
68
  /** Amount in smallest unit (lamports for Solana, wei for EVM) */
69
69
  amount: string;
70
70
  /** Swap mode, defaults to EXACT_IN */
71
- mode?: API.SwapMode;
71
+ mode?: SwapMode;
72
72
  /** Slippage tolerance, 0-100, defaults to 1 */
73
73
  slippage?: number;
74
74
  /** Priority fee in microLamports (Solana only) */
@@ -212,7 +212,7 @@ declare function useSwap(options?: UseSwapOptions): {
212
212
  * Polling pauses when `paused` is true (e.g. during swap execution) or
213
213
  * when required params are missing.
214
214
  */
215
- declare function useSwapRoutePolling(params: Partial<API.SwapParams>, options?: UseSwapRoutePollingOptions): {
215
+ declare function useSwapRoutePolling(params: Partial<SwapParams>, options?: UseSwapRoutePollingOptions): {
216
216
  route: _liberfi_io_types.SwapRoute | undefined;
217
217
  isRouting: boolean;
218
218
  error: Error | null;
@@ -294,7 +294,7 @@ interface UseSwapScriptResult {
294
294
  /** Output amount converted to USD using to-token price */
295
295
  outputAmountInUsd: string | undefined;
296
296
  /** Current swap route quote */
297
- route: API.SwapRoute | undefined;
297
+ route: SwapRoute | undefined;
298
298
  /** Whether a route is currently being fetched */
299
299
  isRouting: boolean;
300
300
  /** Route fetch error, if any */
@@ -353,7 +353,7 @@ interface SwapUIProps {
353
353
  /** To-token selection handler */
354
354
  onToTokenSelect: (addr: string) => void;
355
355
  /** Current swap route quote */
356
- route: API.SwapRoute | undefined;
356
+ route: SwapRoute | undefined;
357
357
  /** Whether a route is being fetched */
358
358
  isRouting: boolean;
359
359
  /** Route error */
@@ -386,7 +386,7 @@ interface SwapPreviewModalProps {
386
386
  /** Output amount in USD */
387
387
  outputAmountInUsd: string | undefined;
388
388
  /** Current swap route */
389
- route: API.SwapRoute | undefined;
389
+ route: SwapRoute | undefined;
390
390
  /** Whether a route is being fetched */
391
391
  isRouting: boolean;
392
392
  /** Route error */
@@ -661,10 +661,12 @@ interface InstantTradeButtonWidgetProps extends UseInstantTradeButtonParams {
661
661
  * Swap function provided by {@link InstantTradeSwapProvider}.
662
662
  *
663
663
  * Auth-guarded and wallet-injected — the caller only supplies token
664
- * addresses, amount, and trade settings. Returns `undefined` when the
665
- * auth guard intercepts (user not authenticated).
664
+ * addresses, amount, and trade settings. Fire-and-forget: the swap result
665
+ * is delivered through the provider's `onSwapSubmitted` / `onSwapError`
666
+ * callbacks, not via the returned Promise (which always resolves to `void`
667
+ * — the auth guard may intercept and never invoke the underlying swap).
666
668
  */
667
- type InstantTradeSwapFn = (input: Omit<SwapInput, "wallet" | "chain">) => Promise<SwapResult | undefined>;
669
+ type InstantTradeSwapFn = (input: Omit<SwapInput, "wallet" | "chain">) => Promise<void>;
668
670
  /** Props for {@link InstantTradeSwapProvider}. */
669
671
  interface InstantTradeSwapProviderProps {
670
672
  /** Target chain. */
@@ -972,7 +974,11 @@ declare function InstantTradeButtonWidget({ size, radius, color, className, ...s
972
974
  * of each creating their own.
973
975
  *
974
976
  * The context value is a **stable function reference** (backed by refs)
975
- * that will not cause consumer re-renders.
977
+ * that will not cause consumer re-renders. The function is fire-and-forget
978
+ * — the swap result is delivered through the `onSwapSubmitted` /
979
+ * `onSwapError` callbacks supplied to this provider, not via the return
980
+ * value (which is always `Promise<void>` to match `useAuthCallback`'s
981
+ * contract).
976
982
  */
977
983
  declare function InstantTradeSwapProvider({ chain, onSwapSubmitted, onSwapError, children, }: InstantTradeSwapProviderProps): react_jsx_runtime.JSX.Element;
978
984
  /**
@@ -1049,13 +1055,4 @@ declare function getChainPresetFeatures(chain: Chain): ChainPresetFeatures;
1049
1055
  /** Returns chain-appropriate default preset values. */
1050
1056
  declare function getDefaultPresetForChain(chain: Chain): TradePresetValues;
1051
1057
 
1052
- declare global {
1053
- interface Window {
1054
- __LIBERFI_VERSION__?: {
1055
- [key: string]: string;
1056
- };
1057
- }
1058
- }
1059
- declare const _default: "2.0.13";
1060
-
1061
- export { AmountPresetInputUI, type AmountPresetInputUIProps, AmountPresetInputWidget, type AmountPresetInputWidgetProps, type AmountPresetState, type AntiMevOption, type BuySettings, type ChainPresetFeatures, DEFAULT_BSC_TRADE_PRESET, DEFAULT_EVM_TRADE_PRESET, DEFAULT_INSTANT_TRADE_SETTINGS, DEFAULT_SELL_PERCENTAGES, DEFAULT_SOL_TRADE_PRESET, type FeeType, InstantTradeButtonWidget, type InstantTradeButtonWidgetProps, type InstantTradeContextValue, InstantTradeListButtonWidget, type InstantTradeListButtonWidgetProps, InstantTradeProvider, type InstantTradeProviderProps, type InstantTradeSettings, type InstantTradeSwapFn, InstantTradeSwapProvider, type InstantTradeSwapProviderProps, InstantTradeUI, type InstantTradeUIProps, InstantTradeWidget, type InstantTradeWidgetProps, MultiPresetFormWidget, type MultiPresetFormWidgetProps, type PresetDirection, PresetFormModal, type PresetFormModalParams, PresetFormUI, type PresetFormUIProps, PresetFormWidget, type PresetFormWidgetProps, type SellSettings, type SwapInput, type SwapPhase, SwapPreviewModal, type SwapPreviewModalProps, type SwapResult, SwapRouteExpiredError, SwapUI, type SwapUIProps, SwapWidget, type SwapWidgetProps, type TradePresetValues, type TxConfirmationStatus, type UseAmountPresetInputScriptParams, type UseAmountPresetInputScriptResult, type UseInstantTradeAmountParams, type UseInstantTradeButtonParams, type UseInstantTradeButtonResult, type UseInstantTradeListButtonParams, type UseInstantTradeListButtonResult, type UseInstantTradeScriptParams, type UseInstantTradeScriptResult, type UseMultiPresetFormScriptParams, type UseMultiPresetFormScriptResult, type UsePresetFormScriptParams, type UsePresetFormScriptResult, type UsePresetValuesParams, type UseSwapOptions, type UseSwapRoutePollingOptions, type UseSwapScriptParams, type UseSwapScriptResult, type UseTxConfirmationOptions, getChainPresetFeatures, getDefaultBuyAmounts, getDefaultPresetForChain, instantTradeAmountAtomFamily, instantTradeAmountKey, presetAtomFamily, presetKey, useAmountPresetInputScript, useInstantTrade, useInstantTradeAmount, useInstantTradeButtonScript, useInstantTradeListButtonScript, useInstantTradeScript, useInstantTradeSwap, useMultiPresetFormScript, usePresetFormScript, usePresetValues, useSwap, useSwapRoutePolling, useSwapScript, useTxConfirmation, _default as version };
1058
+ export { AmountPresetInputUI, type AmountPresetInputUIProps, AmountPresetInputWidget, type AmountPresetInputWidgetProps, type AmountPresetState, type AntiMevOption, type BuySettings, type ChainPresetFeatures, DEFAULT_BSC_TRADE_PRESET, DEFAULT_EVM_TRADE_PRESET, DEFAULT_INSTANT_TRADE_SETTINGS, DEFAULT_SELL_PERCENTAGES, DEFAULT_SOL_TRADE_PRESET, type FeeType, InstantTradeButtonWidget, type InstantTradeButtonWidgetProps, type InstantTradeContextValue, InstantTradeListButtonWidget, type InstantTradeListButtonWidgetProps, InstantTradeProvider, type InstantTradeProviderProps, type InstantTradeSettings, type InstantTradeSwapFn, InstantTradeSwapProvider, type InstantTradeSwapProviderProps, InstantTradeUI, type InstantTradeUIProps, InstantTradeWidget, type InstantTradeWidgetProps, MultiPresetFormWidget, type MultiPresetFormWidgetProps, type PresetDirection, PresetFormModal, type PresetFormModalParams, PresetFormUI, type PresetFormUIProps, PresetFormWidget, type PresetFormWidgetProps, type SellSettings, type SwapInput, type SwapPhase, SwapPreviewModal, type SwapPreviewModalProps, type SwapResult, SwapRouteExpiredError, SwapUI, type SwapUIProps, SwapWidget, type SwapWidgetProps, type TradePresetValues, type TxConfirmationStatus, type UseAmountPresetInputScriptParams, type UseAmountPresetInputScriptResult, type UseInstantTradeAmountParams, type UseInstantTradeButtonParams, type UseInstantTradeButtonResult, type UseInstantTradeListButtonParams, type UseInstantTradeListButtonResult, type UseInstantTradeScriptParams, type UseInstantTradeScriptResult, type UseMultiPresetFormScriptParams, type UseMultiPresetFormScriptResult, type UsePresetFormScriptParams, type UsePresetFormScriptResult, type UsePresetValuesParams, type UseSwapOptions, type UseSwapRoutePollingOptions, type UseSwapScriptParams, type UseSwapScriptResult, type UseTxConfirmationOptions, getChainPresetFeatures, getDefaultBuyAmounts, getDefaultPresetForChain, instantTradeAmountAtomFamily, instantTradeAmountKey, presetAtomFamily, presetKey, useAmountPresetInputScript, useInstantTrade, useInstantTradeAmount, useInstantTradeButtonScript, useInstantTradeListButtonScript, useInstantTradeScript, useInstantTradeSwap, useMultiPresetFormScript, usePresetFormScript, usePresetValues, useSwap, useSwapRoutePolling, useSwapScript, useTxConfirmation };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _liberfi_io_types from '@liberfi.io/types';
2
- import { Chain, API, Token, Portfolio } from '@liberfi.io/types';
2
+ import { Chain, SwapMode, SwapParams, Token, Portfolio, SwapRoute } from '@liberfi.io/types';
3
3
  import * as jotai_family from 'jotai-family';
4
4
  import * as jotai from 'jotai';
5
5
  import * as jotai_utils from 'jotai/utils';
@@ -68,7 +68,7 @@ interface SwapInput {
68
68
  /** Amount in smallest unit (lamports for Solana, wei for EVM) */
69
69
  amount: string;
70
70
  /** Swap mode, defaults to EXACT_IN */
71
- mode?: API.SwapMode;
71
+ mode?: SwapMode;
72
72
  /** Slippage tolerance, 0-100, defaults to 1 */
73
73
  slippage?: number;
74
74
  /** Priority fee in microLamports (Solana only) */
@@ -212,7 +212,7 @@ declare function useSwap(options?: UseSwapOptions): {
212
212
  * Polling pauses when `paused` is true (e.g. during swap execution) or
213
213
  * when required params are missing.
214
214
  */
215
- declare function useSwapRoutePolling(params: Partial<API.SwapParams>, options?: UseSwapRoutePollingOptions): {
215
+ declare function useSwapRoutePolling(params: Partial<SwapParams>, options?: UseSwapRoutePollingOptions): {
216
216
  route: _liberfi_io_types.SwapRoute | undefined;
217
217
  isRouting: boolean;
218
218
  error: Error | null;
@@ -294,7 +294,7 @@ interface UseSwapScriptResult {
294
294
  /** Output amount converted to USD using to-token price */
295
295
  outputAmountInUsd: string | undefined;
296
296
  /** Current swap route quote */
297
- route: API.SwapRoute | undefined;
297
+ route: SwapRoute | undefined;
298
298
  /** Whether a route is currently being fetched */
299
299
  isRouting: boolean;
300
300
  /** Route fetch error, if any */
@@ -353,7 +353,7 @@ interface SwapUIProps {
353
353
  /** To-token selection handler */
354
354
  onToTokenSelect: (addr: string) => void;
355
355
  /** Current swap route quote */
356
- route: API.SwapRoute | undefined;
356
+ route: SwapRoute | undefined;
357
357
  /** Whether a route is being fetched */
358
358
  isRouting: boolean;
359
359
  /** Route error */
@@ -386,7 +386,7 @@ interface SwapPreviewModalProps {
386
386
  /** Output amount in USD */
387
387
  outputAmountInUsd: string | undefined;
388
388
  /** Current swap route */
389
- route: API.SwapRoute | undefined;
389
+ route: SwapRoute | undefined;
390
390
  /** Whether a route is being fetched */
391
391
  isRouting: boolean;
392
392
  /** Route error */
@@ -661,10 +661,12 @@ interface InstantTradeButtonWidgetProps extends UseInstantTradeButtonParams {
661
661
  * Swap function provided by {@link InstantTradeSwapProvider}.
662
662
  *
663
663
  * Auth-guarded and wallet-injected — the caller only supplies token
664
- * addresses, amount, and trade settings. Returns `undefined` when the
665
- * auth guard intercepts (user not authenticated).
664
+ * addresses, amount, and trade settings. Fire-and-forget: the swap result
665
+ * is delivered through the provider's `onSwapSubmitted` / `onSwapError`
666
+ * callbacks, not via the returned Promise (which always resolves to `void`
667
+ * — the auth guard may intercept and never invoke the underlying swap).
666
668
  */
667
- type InstantTradeSwapFn = (input: Omit<SwapInput, "wallet" | "chain">) => Promise<SwapResult | undefined>;
669
+ type InstantTradeSwapFn = (input: Omit<SwapInput, "wallet" | "chain">) => Promise<void>;
668
670
  /** Props for {@link InstantTradeSwapProvider}. */
669
671
  interface InstantTradeSwapProviderProps {
670
672
  /** Target chain. */
@@ -972,7 +974,11 @@ declare function InstantTradeButtonWidget({ size, radius, color, className, ...s
972
974
  * of each creating their own.
973
975
  *
974
976
  * The context value is a **stable function reference** (backed by refs)
975
- * that will not cause consumer re-renders.
977
+ * that will not cause consumer re-renders. The function is fire-and-forget
978
+ * — the swap result is delivered through the `onSwapSubmitted` /
979
+ * `onSwapError` callbacks supplied to this provider, not via the return
980
+ * value (which is always `Promise<void>` to match `useAuthCallback`'s
981
+ * contract).
976
982
  */
977
983
  declare function InstantTradeSwapProvider({ chain, onSwapSubmitted, onSwapError, children, }: InstantTradeSwapProviderProps): react_jsx_runtime.JSX.Element;
978
984
  /**
@@ -1049,13 +1055,4 @@ declare function getChainPresetFeatures(chain: Chain): ChainPresetFeatures;
1049
1055
  /** Returns chain-appropriate default preset values. */
1050
1056
  declare function getDefaultPresetForChain(chain: Chain): TradePresetValues;
1051
1057
 
1052
- declare global {
1053
- interface Window {
1054
- __LIBERFI_VERSION__?: {
1055
- [key: string]: string;
1056
- };
1057
- }
1058
- }
1059
- declare const _default: "2.0.13";
1060
-
1061
- export { AmountPresetInputUI, type AmountPresetInputUIProps, AmountPresetInputWidget, type AmountPresetInputWidgetProps, type AmountPresetState, type AntiMevOption, type BuySettings, type ChainPresetFeatures, DEFAULT_BSC_TRADE_PRESET, DEFAULT_EVM_TRADE_PRESET, DEFAULT_INSTANT_TRADE_SETTINGS, DEFAULT_SELL_PERCENTAGES, DEFAULT_SOL_TRADE_PRESET, type FeeType, InstantTradeButtonWidget, type InstantTradeButtonWidgetProps, type InstantTradeContextValue, InstantTradeListButtonWidget, type InstantTradeListButtonWidgetProps, InstantTradeProvider, type InstantTradeProviderProps, type InstantTradeSettings, type InstantTradeSwapFn, InstantTradeSwapProvider, type InstantTradeSwapProviderProps, InstantTradeUI, type InstantTradeUIProps, InstantTradeWidget, type InstantTradeWidgetProps, MultiPresetFormWidget, type MultiPresetFormWidgetProps, type PresetDirection, PresetFormModal, type PresetFormModalParams, PresetFormUI, type PresetFormUIProps, PresetFormWidget, type PresetFormWidgetProps, type SellSettings, type SwapInput, type SwapPhase, SwapPreviewModal, type SwapPreviewModalProps, type SwapResult, SwapRouteExpiredError, SwapUI, type SwapUIProps, SwapWidget, type SwapWidgetProps, type TradePresetValues, type TxConfirmationStatus, type UseAmountPresetInputScriptParams, type UseAmountPresetInputScriptResult, type UseInstantTradeAmountParams, type UseInstantTradeButtonParams, type UseInstantTradeButtonResult, type UseInstantTradeListButtonParams, type UseInstantTradeListButtonResult, type UseInstantTradeScriptParams, type UseInstantTradeScriptResult, type UseMultiPresetFormScriptParams, type UseMultiPresetFormScriptResult, type UsePresetFormScriptParams, type UsePresetFormScriptResult, type UsePresetValuesParams, type UseSwapOptions, type UseSwapRoutePollingOptions, type UseSwapScriptParams, type UseSwapScriptResult, type UseTxConfirmationOptions, getChainPresetFeatures, getDefaultBuyAmounts, getDefaultPresetForChain, instantTradeAmountAtomFamily, instantTradeAmountKey, presetAtomFamily, presetKey, useAmountPresetInputScript, useInstantTrade, useInstantTradeAmount, useInstantTradeButtonScript, useInstantTradeListButtonScript, useInstantTradeScript, useInstantTradeSwap, useMultiPresetFormScript, usePresetFormScript, usePresetValues, useSwap, useSwapRoutePolling, useSwapScript, useTxConfirmation, _default as version };
1058
+ export { AmountPresetInputUI, type AmountPresetInputUIProps, AmountPresetInputWidget, type AmountPresetInputWidgetProps, type AmountPresetState, type AntiMevOption, type BuySettings, type ChainPresetFeatures, DEFAULT_BSC_TRADE_PRESET, DEFAULT_EVM_TRADE_PRESET, DEFAULT_INSTANT_TRADE_SETTINGS, DEFAULT_SELL_PERCENTAGES, DEFAULT_SOL_TRADE_PRESET, type FeeType, InstantTradeButtonWidget, type InstantTradeButtonWidgetProps, type InstantTradeContextValue, InstantTradeListButtonWidget, type InstantTradeListButtonWidgetProps, InstantTradeProvider, type InstantTradeProviderProps, type InstantTradeSettings, type InstantTradeSwapFn, InstantTradeSwapProvider, type InstantTradeSwapProviderProps, InstantTradeUI, type InstantTradeUIProps, InstantTradeWidget, type InstantTradeWidgetProps, MultiPresetFormWidget, type MultiPresetFormWidgetProps, type PresetDirection, PresetFormModal, type PresetFormModalParams, PresetFormUI, type PresetFormUIProps, PresetFormWidget, type PresetFormWidgetProps, type SellSettings, type SwapInput, type SwapPhase, SwapPreviewModal, type SwapPreviewModalProps, type SwapResult, SwapRouteExpiredError, SwapUI, type SwapUIProps, SwapWidget, type SwapWidgetProps, type TradePresetValues, type TxConfirmationStatus, type UseAmountPresetInputScriptParams, type UseAmountPresetInputScriptResult, type UseInstantTradeAmountParams, type UseInstantTradeButtonParams, type UseInstantTradeButtonResult, type UseInstantTradeListButtonParams, type UseInstantTradeListButtonResult, type UseInstantTradeScriptParams, type UseInstantTradeScriptResult, type UseMultiPresetFormScriptParams, type UseMultiPresetFormScriptResult, type UsePresetFormScriptParams, type UsePresetFormScriptResult, type UsePresetValuesParams, type UseSwapOptions, type UseSwapRoutePollingOptions, type UseSwapScriptParams, type UseSwapScriptResult, type UseTxConfirmationOptions, getChainPresetFeatures, getDefaultBuyAmounts, getDefaultPresetForChain, instantTradeAmountAtomFamily, instantTradeAmountKey, presetAtomFamily, presetKey, useAmountPresetInputScript, useInstantTrade, useInstantTradeAmount, useInstantTradeButtonScript, useInstantTradeListButtonScript, useInstantTradeScript, useInstantTradeSwap, useMultiPresetFormScript, usePresetFormScript, usePresetValues, useSwap, useSwapRoutePolling, useSwapScript, useTxConfirmation };