@aave/react 4.0.0-next.3 → 4.0.0-next.30

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 (46) hide show
  1. package/README.md +8 -24
  2. package/dist/chunk-4NA4FB6K.js +2 -0
  3. package/dist/chunk-4NA4FB6K.js.map +1 -0
  4. package/dist/chunk-LBLCOU6O.js +2 -0
  5. package/dist/chunk-LBLCOU6O.js.map +1 -0
  6. package/dist/chunk-VGAHEW5B.js +2 -0
  7. package/dist/chunk-VGAHEW5B.js.map +1 -0
  8. package/dist/ethers.cjs +1 -1
  9. package/dist/ethers.cjs.map +1 -1
  10. package/dist/ethers.d.cts +10 -66
  11. package/dist/ethers.d.ts +10 -66
  12. package/dist/ethers.js +1 -1
  13. package/dist/ethers.js.map +1 -1
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +887 -264
  17. package/dist/index.d.ts +887 -264
  18. package/dist/index.js +1 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/{misc-BkG5G4yl.d.cts → misc-C2MMWDjq.d.ts} +39 -15
  21. package/dist/{misc-gmAnSdm5.d.ts → misc-DP6al_6P.d.cts} +39 -15
  22. package/dist/privy.cjs +1 -1
  23. package/dist/privy.cjs.map +1 -1
  24. package/dist/privy.d.cts +9 -54
  25. package/dist/privy.d.ts +9 -54
  26. package/dist/privy.js +1 -1
  27. package/dist/privy.js.map +1 -1
  28. package/dist/thirdweb.cjs +1 -2
  29. package/dist/thirdweb.cjs.map +1 -1
  30. package/dist/thirdweb.d.cts +9 -54
  31. package/dist/thirdweb.d.ts +9 -54
  32. package/dist/thirdweb.js +1 -2
  33. package/dist/thirdweb.js.map +1 -1
  34. package/dist/viem/index.cjs +1 -1
  35. package/dist/viem/index.cjs.map +1 -1
  36. package/dist/viem/index.d.cts +13 -68
  37. package/dist/viem/index.d.ts +13 -68
  38. package/dist/viem/index.js +1 -1
  39. package/dist/viem/index.js.map +1 -1
  40. package/dist/{writes-BXnwYgAQ.d.cts → writes-CqRSU8Ho.d.cts} +9 -5
  41. package/dist/{writes-BXnwYgAQ.d.ts → writes-CqRSU8Ho.d.ts} +9 -5
  42. package/package.json +6 -6
  43. package/dist/chunk-GTUQRT5Q.js +0 -2
  44. package/dist/chunk-GTUQRT5Q.js.map +0 -1
  45. package/dist/chunk-XIDOSID3.js +0 -2
  46. package/dist/chunk-XIDOSID3.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
- import { AaveClient, CurrencyQueryOptions, UnexpectedError, TimeWindowQueryOptions, ValidationError, ActivitiesRequest, PaginatedActivitiesResult } from '@aave/client';
1
+ import { AaveClient, CurrencyQueryOptions, TimeWindowQueryOptions, UnexpectedError, ValidationError, ActivitiesRequest, PaginatedActivitiesResult } from '@aave/client';
2
2
  export * from '@aave/client';
3
3
  import React, { ReactNode } from 'react';
4
- import { a as UseAsyncTask, C as CancelOperation, S as SendTransactionError, P as PendingTransactionError, b as PendingTransaction, T as TransactionHandler } from './writes-BXnwYgAQ.cjs';
5
- export { A as AsyncTaskError, c as AsyncTaskIdle, d as AsyncTaskLoading, e as AsyncTaskState, f as AsyncTaskSuccess, g as TransactionHandlerOptions, U as UseSendTransactionResult } from './writes-BXnwYgAQ.cjs';
6
- import { HubRequest, Hub, HubsRequest, HubAssetsRequest, HubAsset, PermitRequest, PermitTypedDataResponse, AssetRequest, Asset, AssetPriceHistoryRequest, AssetPriceSample, AssetSupplyHistoryRequest, AssetSupplySample, AssetBorrowHistoryRequest, AssetBorrowSample, ReserveRequest, Reserve, ReservesRequest, BorrowAPYHistoryRequest, APYSample, SupplyAPYHistoryRequest, SpokeRequest, Spoke, SpokesRequest, SpokePositionManagersRequest, PaginatedSpokePositionManagerResult, SpokeUserPositionManagersRequest, PaginatedSpokeUserPositionManagerResult, SwapQuoteRequest, SwapQuote, SwappableTokensRequest, Token, UserSwapsRequest, PaginatedUserSwapsResult, PrepareSwapRequest, SwapByIntentTypedData, SwapByIntentWithApprovalRequired, SwapTransactionRequest, SwapApprovalRequired, ERC20PermitSignature, SwapReceipt, InsufficientBalanceError, CancelSwapTypedData, TransactionRequest, PrepareSwapCancelRequest, SwapCancelled, SupplyRequest, BorrowRequest, RepayRequest, WithdrawRequest, RenounceSpokeUserPositionManagerRequest, UpdateUserRiskPremiumRequest, UpdateUserDynamicConfigRequest, SetUserSupplyAsCollateralRequest, LiquidatePositionRequest, SetSpokeUserPositionManagerRequest, PreviewRequest, PreviewUserPosition, UserSuppliesRequest, UserSupplyItem, UserBorrowsRequest, UserBorrowItem, UserSummaryRequest, UserSummary, UserPositionsRequest, UserPosition, UserPositionRequest, UserBalancesRequest, UserBalance, UserSummaryHistoryRequest, UserSummaryHistoryItem } from '@aave/graphql';
7
- import { Prettify, ResultAsync, ResultAwareError, TxHash } from '@aave/types';
8
- import { S as Suspendable, a as SuspenseResult, P as Pausable, b as PausableSuspenseResult, R as ReadResult, c as PausableReadResult, d as Selector } from './misc-BkG5G4yl.cjs';
9
- export { e as UseChainArgs, f as UseChainsArgs, i as UseExchangeRateArgs, U as UseNetworkFee, l as UseNetworkFeeArgs, k as UseNetworkFeeRequestQuery, u as useChain, g as useChains, j as useExchangeRate, h as useExchangeRateAction } from './misc-BkG5G4yl.cjs';
10
- import { UnexpectedError as UnexpectedError$1, SigningError, CancelError, TimeoutError, TransactionError, ValidationError as ValidationError$1 } from '@aave/core';
4
+ import { a as UseAsyncTask, C as CancelOperation, P as PendingTransaction, S as SendTransactionError, b as PendingTransactionError, T as TransactionHandler } from './writes-CqRSU8Ho.cjs';
5
+ export { A as AsyncTaskError, c as AsyncTaskIdle, d as AsyncTaskLoading, e as AsyncTaskState, f as AsyncTaskSuccess, g as TransactionHandlerOptions, U as UseSendTransactionResult } from './writes-CqRSU8Ho.cjs';
6
+ import { HubRequest, Hub, HubsRequest, HubAssetsRequest, HubAsset, HubSummaryHistoryRequest, HubSummarySample, AssetRequest, Asset, AssetPriceHistoryRequest, AssetPriceSample, AssetSupplyHistoryRequest, AssetSupplySample, AssetBorrowHistoryRequest, AssetBorrowSample, ProtocolHistoryRequest, ProtocolHistorySample, ReserveRequest, Reserve, ReservesRequest, BorrowApyHistoryRequest, ApySample, SupplyApyHistoryRequest, SpokeRequest, Spoke, SpokesRequest, SpokePositionManagersRequest, PaginatedSpokePositionManagerResult, SpokeUserPositionManagersRequest, PaginatedSpokeUserPositionManagerResult, TokenSwapQuoteRequest, SwapQuote, SwappableTokensRequest, Token, UserSwapsRequest, PaginatedUserSwapsResult, SwapStatusRequest, SwapStatus, SupplySwapQuoteRequest, BorrowSwapQuoteRequest, TransactionRequest, PositionSwapApproval, SwapTypedData, SwapReceipt, InsufficientBalanceError, RepayWithSupplyQuoteRequest, WithdrawSwapQuoteRequest, Erc20Approval, SwapTransactionRequest, ERC20PermitSignature, PrepareSwapCancelRequest, SwapCancelled, Erc20ApprovalRequired, PreContractActionRequired, SupplyRequest, BorrowRequest, RepayRequest, WithdrawRequest, RenounceSpokeUserPositionManagerRequest, UpdateUserPositionConditionsRequest, SetUserSuppliesAsCollateralRequest, LiquidatePositionRequest, SetSpokeUserPositionManagerRequest, PreviewRequest, PreviewUserPosition, UserSuppliesRequest, UserSupplyItem, UserBorrowsRequest, UserBorrowItem, UserSummaryRequest, UserSummary, UserPositionsRequest, UserPosition, UserPositionRequest, UserBalancesRequest, UserBalance, UserRiskPremiumBreakdownRequest, UserRiskPremiumBreakdownItem, UserSummaryHistoryRequest, UserSummaryHistoryItem } from '@aave/graphql';
7
+ import { Prettify, Signature, ResultAsync, ResultAwareError, TxHash } from '@aave/types';
8
+ import { S as Suspendable, a as SuspenseResult, P as Pausable, b as PausableSuspenseResult, R as ReadResult, c as PausableReadResult, d as Selector } from './misc-DP6al_6P.cjs';
9
+ export { e as UseChainArgs, g as UseChainsArgs, j as UseExchangeRateArgs, U as UseNetworkFee, m as UseNetworkFeeArgs, l as UseNetworkFeeRequestQuery, u as useChain, f as useChainAction, h as useChains, k as useExchangeRate, i as useExchangeRateAction } from './misc-DP6al_6P.cjs';
10
+ import { UnexpectedError as UnexpectedError$1, CancelError, SigningError, TimeoutError, TransactionError, ValidationError as ValidationError$1 } from '@aave/core';
11
11
  import { UserPositionQueryOptions } from '@aave/client/actions';
12
12
 
13
13
  /**
@@ -49,7 +49,7 @@ declare function AaveProvider({ children, client }: AaveProviderProps): React.JS
49
49
  */
50
50
  declare function useAaveClient(): AaveClient;
51
51
 
52
- type UseHubArgs = Prettify<HubRequest & CurrencyQueryOptions>;
52
+ type UseHubArgs = Prettify<HubRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
53
53
  /**
54
54
  * Fetch a specific hub by ID or by address and chain ID.
55
55
  *
@@ -102,7 +102,7 @@ declare function useHub(args: UseHubArgs): ReadResult<Hub | null>;
102
102
  * ```
103
103
  */
104
104
  declare function useHub(args: Pausable<UseHubArgs>): PausableReadResult<Hub | null>;
105
- type UseHubsArgs = Prettify<HubsRequest & CurrencyQueryOptions>;
105
+ type UseHubsArgs = Prettify<HubsRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
106
106
  /**
107
107
  * Fetch multiple hubs based on specified criteria.
108
108
  *
@@ -153,7 +153,7 @@ declare function useHubs(args: UseHubsArgs): ReadResult<Hub[]>;
153
153
  * ```
154
154
  */
155
155
  declare function useHubs(args: Pausable<UseHubsArgs>): PausableReadResult<Hub[]>;
156
- type UseHubAssetsArgs = Prettify<HubAssetsRequest & CurrencyQueryOptions>;
156
+ type UseHubAssetsArgs = Prettify<HubAssetsRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
157
157
  /**
158
158
  * Fetch hub assets for a specific hub by ID or by address and chain ID.
159
159
  *
@@ -208,6 +208,61 @@ declare function useHubAssets(args: UseHubAssetsArgs): ReadResult<HubAsset[]>;
208
208
  * ```
209
209
  */
210
210
  declare function useHubAssets(args: Pausable<UseHubAssetsArgs>): PausableReadResult<HubAsset[]>;
211
+ type UseHubSummaryHistoryArgs = HubSummaryHistoryRequest;
212
+ /**
213
+ * Fetch historical summary data for a specific hub.
214
+ *
215
+ * This signature supports React Suspense:
216
+ *
217
+ * ```tsx
218
+ * const { data } = useHubSummaryHistory({
219
+ * query: { hubId: hubId('SGVsbG8h') },
220
+ * currency: Currency.Usd,
221
+ * window: TimeWindow.LastWeek,
222
+ * suspense: true,
223
+ * });
224
+ * ```
225
+ */
226
+ declare function useHubSummaryHistory(args: UseHubSummaryHistoryArgs & Suspendable): SuspenseResult<HubSummarySample[]>;
227
+ /**
228
+ * Fetch historical summary data for a specific hub.
229
+ *
230
+ * Pausable suspense mode.
231
+ *
232
+ * ```tsx
233
+ * const { data } = useHubSummaryHistory({
234
+ * query: { hubId: hubId('SGVsbG8h') },
235
+ * suspense: true,
236
+ * pause: true,
237
+ * });
238
+ * ```
239
+ */
240
+ declare function useHubSummaryHistory(args: Pausable<UseHubSummaryHistoryArgs> & Suspendable): PausableSuspenseResult<HubSummarySample[]>;
241
+ /**
242
+ * Fetch historical summary data for a specific hub.
243
+ *
244
+ * ```tsx
245
+ * const { data, error, loading } = useHubSummaryHistory({
246
+ * query: { hubId: hubId('SGVsbG8h') },
247
+ * currency: Currency.Usd,
248
+ * window: TimeWindow.LastWeek,
249
+ * });
250
+ * ```
251
+ */
252
+ declare function useHubSummaryHistory(args: UseHubSummaryHistoryArgs): ReadResult<HubSummarySample[]>;
253
+ /**
254
+ * Fetch historical summary data for a specific hub.
255
+ *
256
+ * Pausable loading state mode.
257
+ *
258
+ * ```tsx
259
+ * const { data, error, loading, paused } = useHubSummaryHistory({
260
+ * query: { hubId: hubId('SGVsbG8h') },
261
+ * pause: true,
262
+ * });
263
+ * ```
264
+ */
265
+ declare function useHubSummaryHistory(args: Pausable<UseHubSummaryHistoryArgs>): PausableReadResult<HubSummarySample[]>;
211
266
  /**
212
267
  * Low-level hook to execute a {@link hubs} action directly.
213
268
  *
@@ -237,11 +292,6 @@ declare function useHubAssets(args: Pausable<UseHubAssetsArgs>): PausableReadRes
237
292
  */
238
293
  declare function useHubsAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<HubsRequest, Hub[], UnexpectedError>;
239
294
 
240
- /**
241
- * @internal
242
- */
243
- declare function usePermitTypedDataAction(): UseAsyncTask<PermitRequest, PermitTypedDataResponse, UnexpectedError>;
244
-
245
295
  type UseAssetArgs = Prettify<AssetRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
246
296
  /**
247
297
  * Fetch information about a specific asset (ERC20 token) in the protocol by ID or by token.
@@ -350,7 +400,7 @@ declare function useAssetPriceHistory(args: UseAssetPriceHistoryArgs): ReadResul
350
400
  * ```
351
401
  */
352
402
  declare function useAssetPriceHistory(args: Pausable<UseAssetPriceHistoryArgs>): PausableReadResult<AssetPriceSample[]>;
353
- type UseAssetSupplyHistoryArgs = AssetSupplyHistoryRequest;
403
+ type UseAssetSupplyHistoryArgs = Prettify<AssetSupplyHistoryRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
354
404
  /**
355
405
  * Fetch historical supply data for a specific asset.
356
406
  *
@@ -403,7 +453,7 @@ declare function useAssetSupplyHistory(args: UseAssetSupplyHistoryArgs): ReadRes
403
453
  * ```
404
454
  */
405
455
  declare function useAssetSupplyHistory(args: Pausable<UseAssetSupplyHistoryArgs>): PausableReadResult<AssetSupplySample[]>;
406
- type UseAssetBorrowHistoryArgs = AssetBorrowHistoryRequest;
456
+ type UseAssetBorrowHistoryArgs = Prettify<AssetBorrowHistoryRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
407
457
  /**
408
458
  * Fetch historical borrow data for a specific asset.
409
459
  *
@@ -456,8 +506,63 @@ declare function useAssetBorrowHistory(args: UseAssetBorrowHistoryArgs): ReadRes
456
506
  * ```
457
507
  */
458
508
  declare function useAssetBorrowHistory(args: Pausable<UseAssetBorrowHistoryArgs>): PausableReadResult<AssetBorrowSample[]>;
509
+ type UseProtocolHistoryArgs = ProtocolHistoryRequest;
510
+ /**
511
+ * Fetch historical protocol-wide data (deposits, borrows, earnings).
512
+ *
513
+ * This signature supports React Suspense:
514
+ *
515
+ * ```tsx
516
+ * const { data } = useProtocolHistory({
517
+ * currency: Currency.Usd,
518
+ * window: TimeWindow.LastWeek,
519
+ * suspense: true,
520
+ * });
521
+ * ```
522
+ */
523
+ declare function useProtocolHistory(args: UseProtocolHistoryArgs & Suspendable): SuspenseResult<ProtocolHistorySample[]>;
524
+ /**
525
+ * Fetch historical protocol-wide data (deposits, borrows, earnings).
526
+ *
527
+ * Pausable suspense mode.
528
+ *
529
+ * ```tsx
530
+ * const { data } = useProtocolHistory({
531
+ * currency: Currency.Usd,
532
+ * window: TimeWindow.LastWeek,
533
+ * suspense: true,
534
+ * pause: true,
535
+ * });
536
+ * ```
537
+ */
538
+ declare function useProtocolHistory(args: Pausable<UseProtocolHistoryArgs> & Suspendable): PausableSuspenseResult<ProtocolHistorySample[]>;
539
+ /**
540
+ * Fetch historical protocol-wide data (deposits, borrows, earnings).
541
+ *
542
+ * ```tsx
543
+ * const { data, error, loading } = useProtocolHistory({
544
+ * currency: Currency.Usd,
545
+ * window: TimeWindow.LastWeek,
546
+ * });
547
+ * ```
548
+ */
549
+ declare function useProtocolHistory(args: UseProtocolHistoryArgs): ReadResult<ProtocolHistorySample[]>;
550
+ /**
551
+ * Fetch historical protocol-wide data (deposits, borrows, earnings).
552
+ *
553
+ * Pausable loading state mode.
554
+ *
555
+ * ```tsx
556
+ * const { data, error, loading, paused } = useProtocolHistory({
557
+ * currency: Currency.Usd,
558
+ * window: TimeWindow.LastWeek,
559
+ * pause: true,
560
+ * });
561
+ * ```
562
+ */
563
+ declare function useProtocolHistory(args: Pausable<UseProtocolHistoryArgs>): PausableReadResult<ProtocolHistorySample[]>;
459
564
 
460
- type UseReserveArgs = Prettify<ReserveRequest & CurrencyQueryOptions>;
565
+ type UseReserveArgs = Prettify<ReserveRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
461
566
  /**
462
567
  * Fetch a specific reserve by reserve ID, spoke, and chain.
463
568
  *
@@ -537,8 +642,8 @@ declare function useReserve(args: Pausable<UseReserveArgs>): PausableReadResult<
537
642
  * }
538
643
  * ```
539
644
  */
540
- declare function useReserveAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<ReserveRequest, Reserve | null, UnexpectedError>;
541
- type UseReservesArgs<T = Reserve[]> = Prettify<ReservesRequest & CurrencyQueryOptions & {
645
+ declare function useReserveAction(options?: CurrencyQueryOptions & TimeWindowQueryOptions): UseAsyncTask<ReserveRequest, Reserve | null, UnexpectedError>;
646
+ type UseReservesArgs<T = Reserve[]> = Prettify<ReservesRequest & CurrencyQueryOptions & TimeWindowQueryOptions & {
542
647
  /**
543
648
  * A function that maps the full list of reserves
544
649
  * into a derived or narrowed value.
@@ -737,8 +842,8 @@ declare function useReserves<T = Reserve[]>(args: Pausable<UseReservesArgs<T>>):
737
842
  * }
738
843
  * ```
739
844
  */
740
- declare function useReservesAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<ReservesRequest, Reserve[], UnexpectedError>;
741
- type UseBorrowApyHistoryArgs = BorrowAPYHistoryRequest;
845
+ declare function useReservesAction(options?: CurrencyQueryOptions & TimeWindowQueryOptions): UseAsyncTask<ReservesRequest, Reserve[], UnexpectedError>;
846
+ type UseBorrowApyHistoryArgs = BorrowApyHistoryRequest;
742
847
  /**
743
848
  * Fetch borrow APY history for a specific reserve over time.
744
849
  *
@@ -752,7 +857,7 @@ type UseBorrowApyHistoryArgs = BorrowAPYHistoryRequest;
752
857
  * });
753
858
  * ```
754
859
  */
755
- declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs & Suspendable): SuspenseResult<APYSample[]>;
860
+ declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs & Suspendable): SuspenseResult<ApySample[]>;
756
861
  /**
757
862
  * Fetch borrow APY history for a specific reserve over time.
758
863
  *
@@ -767,7 +872,7 @@ declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs & Suspendable
767
872
  * });
768
873
  * ```
769
874
  */
770
- declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs> & Suspendable): PausableSuspenseResult<APYSample[]>;
875
+ declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs> & Suspendable): PausableSuspenseResult<ApySample[]>;
771
876
  /**
772
877
  * Fetch borrow APY history for a specific reserve over time.
773
878
  *
@@ -778,7 +883,7 @@ declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs> & S
778
883
  * });
779
884
  * ```
780
885
  */
781
- declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs): ReadResult<APYSample[]>;
886
+ declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs): ReadResult<ApySample[]>;
782
887
  /**
783
888
  * Fetch borrow APY history for a specific reserve over time.
784
889
  *
@@ -792,8 +897,8 @@ declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs): ReadResult<
792
897
  * });
793
898
  * ```
794
899
  */
795
- declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs>): PausableReadResult<APYSample[]>;
796
- type UseSupplyApyHistoryArgs = SupplyAPYHistoryRequest;
900
+ declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs>): PausableReadResult<ApySample[]>;
901
+ type UseSupplyApyHistoryArgs = SupplyApyHistoryRequest;
797
902
  /**
798
903
  * Fetch supply APY history for a specific reserve over time.
799
904
  *
@@ -807,7 +912,7 @@ type UseSupplyApyHistoryArgs = SupplyAPYHistoryRequest;
807
912
  * });
808
913
  * ```
809
914
  */
810
- declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs & Suspendable): SuspenseResult<APYSample[]>;
915
+ declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs & Suspendable): SuspenseResult<ApySample[]>;
811
916
  /**
812
917
  * Fetch supply APY history for a specific reserve over time.
813
918
  *
@@ -822,7 +927,7 @@ declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs & Suspendable
822
927
  * });
823
928
  * ```
824
929
  */
825
- declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs> & Suspendable): PausableSuspenseResult<APYSample[]>;
930
+ declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs> & Suspendable): PausableSuspenseResult<ApySample[]>;
826
931
  /**
827
932
  * Fetch supply APY history for a specific reserve over time.
828
933
  *
@@ -833,7 +938,7 @@ declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs> & S
833
938
  * });
834
939
  * ```
835
940
  */
836
- declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs): ReadResult<APYSample[]>;
941
+ declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs): ReadResult<ApySample[]>;
837
942
  /**
838
943
  * Fetch supply APY history for a specific reserve over time.
839
944
  *
@@ -847,7 +952,7 @@ declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs): ReadResult<
847
952
  * });
848
953
  * ```
849
954
  */
850
- declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs>): PausableReadResult<APYSample[]>;
955
+ declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs>): PausableReadResult<ApySample[]>;
851
956
 
852
957
  type UseSpokeArgs = SpokeRequest;
853
958
  /**
@@ -1044,267 +1149,751 @@ declare function useSpokeUserPositionManagers(args: Pausable<UseSpokeUserPositio
1044
1149
  * });
1045
1150
  * ```
1046
1151
  */
1047
- declare function useSpokeUserPositionManagers(args: UseSpokeUserPositionManagersArgs): ReadResult<PaginatedSpokeUserPositionManagerResult>;
1152
+ declare function useSpokeUserPositionManagers(args: UseSpokeUserPositionManagersArgs): ReadResult<PaginatedSpokeUserPositionManagerResult>;
1153
+ /**
1154
+ * Fetches all the position managers of a user for a specific spoke
1155
+ *
1156
+ * Pausable loading state mode.
1157
+ *
1158
+ * ```tsx
1159
+ * const { data, error, loading, paused } = useSpokeUserPositionManagers({
1160
+ * spoke: spokeId('SGVsbG8h'),
1161
+ * user: evmAddress('0x123...'),
1162
+ * pause: true,
1163
+ * });
1164
+ * ```
1165
+ */
1166
+ declare function useSpokeUserPositionManagers(args: Pausable<UseSpokeUserPositionManagersArgs>): PausableReadResult<PaginatedSpokeUserPositionManagerResult>;
1167
+
1168
+ type UseTokenSwapQuoteArgs = Prettify<TokenSwapQuoteRequest & CurrencyQueryOptions>;
1169
+ /**
1170
+ * Fetch a swap quote for the specified trade parameters.
1171
+ *
1172
+ * This signature supports React Suspense:
1173
+ *
1174
+ * ```tsx
1175
+ * const { data } = useTokenSwapQuote({
1176
+ * market: {
1177
+ * buy: { erc20: evmAddress('0xA0b86a33E6…') },
1178
+ * sell: { erc20: evmAddress('0x6B175474E…') },
1179
+ * amount: bigDecimal('1000'),
1180
+ * kind: SwapKind.Sell,
1181
+ * user: evmAddress('0x742d35cc…'),
1182
+ * },
1183
+ * chainId: chainId(1),
1184
+ * suspense: true,
1185
+ * });
1186
+ * ```
1187
+ */
1188
+ declare function useTokenSwapQuote(args: UseTokenSwapQuoteArgs & Suspendable): SuspenseResult<SwapQuote>;
1189
+ /**
1190
+ * Fetch a swap quote for the specified trade parameters.
1191
+ *
1192
+ * Pausable suspense mode.
1193
+ *
1194
+ * ```tsx
1195
+ * const { data } = useTokenSwapQuote({
1196
+ * market: {
1197
+ * chainId: chainId(1),
1198
+ * buy: { erc20: evmAddress('0xA0b86a33E6…') },
1199
+ * sell: { erc20: evmAddress('0x6B175474E…') },
1200
+ * amount: bigDecimal('1000'),
1201
+ * kind: SwapKind.Sell,
1202
+ * user: evmAddress('0x742d35cc…'),
1203
+ * },
1204
+ * suspense: true,
1205
+ * pause: true,
1206
+ * });
1207
+ * ```
1208
+ */
1209
+ declare function useTokenSwapQuote(args: Pausable<UseTokenSwapQuoteArgs> & Suspendable): PausableSuspenseResult<SwapQuote>;
1210
+ /**
1211
+ * Fetch a swap quote for the specified trade parameters.
1212
+ *
1213
+ * ```tsx
1214
+ * const { data, error, loading } = useTokenSwapQuote({
1215
+ * market: {
1216
+ * chainId: chainId(1),
1217
+ * buy: { erc20: evmAddress('0xA0b86a33E6…') },
1218
+ * sell: { erc20: evmAddress('0x6B175474E…') },
1219
+ * amount: bigDecimal('1000'),
1220
+ * kind: SwapKind.Sell,
1221
+ * user: evmAddress('0x742d35cc…'),
1222
+ * },
1223
+ * });
1224
+ * ```
1225
+ */
1226
+ declare function useTokenSwapQuote(args: UseTokenSwapQuoteArgs): ReadResult<SwapQuote>;
1227
+ /**
1228
+ * Fetch a swap quote for the specified trade parameters.
1229
+ *
1230
+ * Pausable loading state mode.
1231
+ *
1232
+ * ```tsx
1233
+ * const { data, error, loading, paused } = useTokenSwapQuote({
1234
+ * market: {
1235
+ * chainId: chainId(1),
1236
+ * buy: { erc20: evmAddress('0xA0b86a33E6…') },
1237
+ * sell: { erc20: evmAddress('0x6B175474E…') },
1238
+ * amount: bigDecimal('1000'),
1239
+ * kind: SwapKind.Sell,
1240
+ * user: evmAddress('0x742d35cc…'),
1241
+ * },
1242
+ * pause: true,
1243
+ * });
1244
+ * ```
1245
+ */
1246
+ declare function useTokenSwapQuote(args: Pausable<UseTokenSwapQuoteArgs>): PausableReadResult<SwapQuote>;
1247
+ /**
1248
+ * Low-level hook to execute a swap quote action directly.
1249
+ *
1250
+ * @remarks
1251
+ * This hook **does not** actively watch for updated data on the swap quote.
1252
+ * Use this hook to retrieve quotes on demand as part of a larger workflow
1253
+ * (e.g., in an event handler to get a fresh quote before executing a swap).
1254
+ *
1255
+ * ```ts
1256
+ * const [getQuote, { called, data, error, loading }] = useTokenSwapQuoteAction();
1257
+ *
1258
+ * // …
1259
+ *
1260
+ * const result = await getQuote({
1261
+ * market: {
1262
+ * chainId: chainId(1),
1263
+ * buy: { erc20: evmAddress('0xA0b86a33E6…') },
1264
+ * sell: { erc20: evmAddress('0x6B175474E…') },
1265
+ * amount: bigDecimal('1000'),
1266
+ * kind: SwapKind.Sell,
1267
+ * },
1268
+ * });
1269
+ *
1270
+ * if (result.isOk()) {
1271
+ * console.log('Swap quote:', result.value);
1272
+ * } else {
1273
+ * console.error(result.error);
1274
+ * }
1275
+ * ```
1276
+ */
1277
+ declare function useTokenSwapQuoteAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<TokenSwapQuoteRequest, SwapQuote, UnexpectedError$1>;
1278
+ type UseSwappableTokensArgs = SwappableTokensRequest;
1279
+ /**
1280
+ * Fetch the list of tokens available for swapping on a specific chain.
1281
+ *
1282
+ * This signature supports React Suspense:
1283
+ *
1284
+ * ```tsx
1285
+ * const { data } = useSwappableTokens({
1286
+ * query: { chainIds: [chainId(1)] },
1287
+ * suspense: true,
1288
+ * });
1289
+ * ```
1290
+ */
1291
+ declare function useSwappableTokens(args: UseSwappableTokensArgs & Suspendable): SuspenseResult<Token[]>;
1292
+ /**
1293
+ * Fetch the list of tokens available for swapping on a specific chain.
1294
+ *
1295
+ * Pausable suspense mode.
1296
+ *
1297
+ * ```tsx
1298
+ * const { data } = useSwappableTokens({
1299
+ * query: { chainIds: [chainId(1)] },
1300
+ * suspense: true,
1301
+ * pause: true,
1302
+ * });
1303
+ * ```
1304
+ */
1305
+ declare function useSwappableTokens(args: Pausable<UseSwappableTokensArgs> & Suspendable): PausableSuspenseResult<Token[]>;
1306
+ /**
1307
+ * Fetch the list of tokens available for swapping on a specific chain.
1308
+ *
1309
+ * ```tsx
1310
+ * const { data, error, loading } = useSwappableTokens({
1311
+ * query: { chainIds: [chainId(1)] },
1312
+ * });
1313
+ * ```
1314
+ */
1315
+ declare function useSwappableTokens(args: UseSwappableTokensArgs): ReadResult<Token[]>;
1316
+ /**
1317
+ * Fetch the list of tokens available for swapping on a specific chain.
1318
+ *
1319
+ * Pausable loading state mode.
1320
+ *
1321
+ * ```tsx
1322
+ * const { data, error, loading, paused } = useSwappableTokens({
1323
+ * query: { chainIds: [chainId(1)] },
1324
+ * pause: true,
1325
+ * });
1326
+ * ```
1327
+ */
1328
+ declare function useSwappableTokens(args: Pausable<UseSwappableTokensArgs>): PausableReadResult<Token[]>;
1329
+ type UseUserSwapsArgs = Prettify<UserSwapsRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
1330
+ /**
1331
+ * Fetch the user's swap history for a specific chain.
1332
+ *
1333
+ * This signature supports React Suspense:
1334
+ *
1335
+ * ```tsx
1336
+ * const { data } = useUserSwaps({
1337
+ * chainId: chainId(1),
1338
+ * user: evmAddress('0x742d35cc…'),
1339
+ * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1340
+ * suspense: true,
1341
+ * });
1342
+ * ```
1343
+ */
1344
+ declare function useUserSwaps(args: UseUserSwapsArgs & Suspendable): SuspenseResult<PaginatedUserSwapsResult>;
1345
+ /**
1346
+ * Fetch the user's swap history for a specific chain.
1347
+ *
1348
+ * Pausable suspense mode.
1349
+ *
1350
+ * ```tsx
1351
+ * const { data } = useUserSwaps({
1352
+ * chainId: chainId(1),
1353
+ * user: evmAddress('0x742d35cc…'),
1354
+ * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1355
+ * suspense: true,
1356
+ * pause: true,
1357
+ * });
1358
+ * ```
1359
+ */
1360
+ declare function useUserSwaps(args: Pausable<UseUserSwapsArgs> & Suspendable): PausableSuspenseResult<PaginatedUserSwapsResult>;
1361
+ /**
1362
+ * Fetch the user's swap history for a specific chain.
1363
+ *
1364
+ * ```tsx
1365
+ * const { data, error, loading } = useUserSwaps({
1366
+ * chainId: chainId(1),
1367
+ * user: evmAddress('0x742d35cc…'),
1368
+ * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1369
+ * });
1370
+ * ```
1371
+ */
1372
+ declare function useUserSwaps(args: UseUserSwapsArgs): ReadResult<PaginatedUserSwapsResult>;
1373
+ /**
1374
+ * Fetch the user's swap history for a specific chain.
1375
+ *
1376
+ * Pausable loading state mode.
1377
+ *
1378
+ * ```tsx
1379
+ * const { data, error, loading, paused } = useUserSwaps({
1380
+ * chainId: chainId(1),
1381
+ * user: evmAddress('0x742d35cc…'),
1382
+ * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1383
+ * pause: true,
1384
+ * });
1385
+ * ```
1386
+ */
1387
+ declare function useUserSwaps(args: Pausable<UseUserSwapsArgs>): PausableReadResult<PaginatedUserSwapsResult>;
1388
+ type UseSwapStatusArgs = Prettify<SwapStatusRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
1389
+ /**
1390
+ * Monitor the status of a single swap operation in real-time.
1391
+ *
1392
+ * Polls automatically until the swap reaches a terminal state (fulfilled, cancelled, or expired).
1393
+ *
1394
+ * This signature supports React Suspense:
1395
+ *
1396
+ * ```tsx
1397
+ * const { data } = useSwapStatus({
1398
+ * id: swapReceipt.id,
1399
+ * suspense: true,
1400
+ * });
1401
+ * ```
1402
+ */
1403
+ declare function useSwapStatus(args: UseSwapStatusArgs & Suspendable): SuspenseResult<SwapStatus>;
1404
+ /**
1405
+ * Monitor the status of a single swap operation in real-time.
1406
+ *
1407
+ * Pausable suspense mode.
1408
+ *
1409
+ * ```tsx
1410
+ * const { data } = useSwapStatus({
1411
+ * id: swapReceipt.id,
1412
+ * suspense: true,
1413
+ * pause: shouldPause,
1414
+ * });
1415
+ * ```
1416
+ */
1417
+ declare function useSwapStatus(args: Pausable<UseSwapStatusArgs> & Suspendable): PausableSuspenseResult<SwapStatus>;
1418
+ /**
1419
+ * Monitor the status of a single swap operation in real-time.
1420
+ *
1421
+ * Polls automatically until the swap reaches a terminal state (fulfilled, cancelled, or expired).
1422
+ *
1423
+ * ```tsx
1424
+ * const { data, error, loading } = useSwapStatus({
1425
+ * id: swapReceipt.id,
1426
+ * });
1427
+ * ```
1428
+ */
1429
+ declare function useSwapStatus(args: UseSwapStatusArgs): ReadResult<SwapStatus>;
1430
+ /**
1431
+ * Monitor the status of a single swap operation in real-time.
1432
+ *
1433
+ * Pausable loading state mode.
1434
+ *
1435
+ * ```tsx
1436
+ * const { data, error, loading, paused } = useSwapStatus({
1437
+ * id: swapReceipt.id,
1438
+ * pause: shouldPause,
1439
+ * });
1440
+ * ```
1441
+ */
1442
+ declare function useSwapStatus(args: Pausable<UseSwapStatusArgs>): PausableReadResult<SwapStatus>;
1443
+ type UseSupplySwapQuoteArgs = Prettify<SupplySwapQuoteRequest & CurrencyQueryOptions>;
1444
+ /**
1445
+ * Fetch a quote for a supply swap operation with the specified parameters.
1446
+ *
1447
+ * This signature supports React Suspense:
1448
+ *
1449
+ * ```tsx
1450
+ * const { data } = useSupplySwapQuote({
1451
+ * market: {
1452
+ * sellPosition: userSupplyItem.id,
1453
+ * buyReserve: reserve.id,
1454
+ * amount: bigDecimal('1000'),
1455
+ * user: evmAddress('0x742d35cc…'),
1456
+ * },
1457
+ * suspense: true,
1458
+ * });
1459
+ * ```
1460
+ */
1461
+ declare function useSupplySwapQuote(args: UseSupplySwapQuoteArgs & Suspendable): SuspenseResult<SwapQuote>;
1462
+ /**
1463
+ * Fetch a quote for a supply swap operation with the specified parameters.
1464
+ *
1465
+ * Pausable suspense mode.
1466
+ *
1467
+ * ```tsx
1468
+ * const { data } = useSupplySwapQuote({
1469
+ * market: {
1470
+ * sellPosition: userSupplyItem.id,
1471
+ * buyReserve: reserve.id,
1472
+ * amount: bigDecimal('1000'),
1473
+ * user: evmAddress('0x742d35cc…'),
1474
+ * },
1475
+ * suspense: true,
1476
+ * pause: true,
1477
+ * });
1478
+ * ```
1479
+ */
1480
+ declare function useSupplySwapQuote(args: Pausable<UseSupplySwapQuoteArgs> & Suspendable): PausableSuspenseResult<SwapQuote>;
1481
+ /**
1482
+ * Fetch a quote for a supply swap operation with the specified parameters.
1483
+ *
1484
+ * ```tsx
1485
+ * const { data, error, loading } = useSupplySwapQuote({
1486
+ * market: {
1487
+ * sellPosition: userSupplyItem.id,
1488
+ * buyReserve: reserve.id,
1489
+ * amount: bigDecimal('1000'),
1490
+ * user: evmAddress('0x742d35cc…'),
1491
+ * },
1492
+ * });
1493
+ * ```
1494
+ */
1495
+ declare function useSupplySwapQuote(args: UseSupplySwapQuoteArgs): ReadResult<SwapQuote>;
1496
+ /**
1497
+ * Fetch a quote for a supply swap operation with the specified parameters.
1498
+ *
1499
+ * Pausable loading state mode.
1500
+ *
1501
+ * ```tsx
1502
+ * const { data, error, loading, paused } = useSupplySwapQuote({
1503
+ * market: {
1504
+ * sellPosition: userSupplyItem.id,
1505
+ * buyReserve: reserve.id,
1506
+ * amount: bigDecimal('1000'),
1507
+ * user: evmAddress('0x742d35cc…'),
1508
+ * },
1509
+ * pause: true,
1510
+ * });
1511
+ * ```
1512
+ */
1513
+ declare function useSupplySwapQuote(args: Pausable<UseSupplySwapQuoteArgs>): PausableReadResult<SwapQuote>;
1514
+ /**
1515
+ * Low-level hook to execute a supply swap quote action directly.
1516
+ *
1517
+ * @remarks
1518
+ * This hook **does not** actively watch for updated data on the swap quote.
1519
+ * Use this hook to retrieve quotes on demand as part of a larger workflow.
1520
+ *
1521
+ * ```ts
1522
+ * const [getQuote, { called, data, error, loading }] = useSupplySwapQuoteAction();
1523
+ *
1524
+ * // …
1525
+ *
1526
+ * const result = await getQuote({
1527
+ * sellPosition: userSupplyItem.id,
1528
+ * buyReserve: reserve.id,
1529
+ * amount: bigDecimal('1000'),
1530
+ * user: evmAddress('0x742d35cc…'),
1531
+ * });
1532
+ *
1533
+ * if (result.isOk()) {
1534
+ * console.log('Supply swap quote:', result.value);
1535
+ * } else {
1536
+ * console.error(result.error);
1537
+ * }
1538
+ * ```
1539
+ */
1540
+ declare function useSupplySwapQuoteAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<SupplySwapQuoteRequest, SwapQuote, UnexpectedError$1>;
1541
+ type UseBorrowSwapQuoteArgs = Prettify<BorrowSwapQuoteRequest & CurrencyQueryOptions>;
1542
+ /**
1543
+ * Fetch a quote for a borrow swap operation with the specified parameters.
1544
+ *
1545
+ * This signature supports React Suspense:
1546
+ *
1547
+ * ```tsx
1548
+ * const { data } = useBorrowSwapQuote({
1549
+ * market: {
1550
+ * sellPosition: userBorrowItem.id,
1551
+ * buyReserve: reserve.id,
1552
+ * amount: bigDecimal('1000'),
1553
+ * user: evmAddress('0x742d35cc…'),
1554
+ * },
1555
+ * suspense: true,
1556
+ * });
1557
+ * ```
1558
+ */
1559
+ declare function useBorrowSwapQuote(args: UseBorrowSwapQuoteArgs & Suspendable): SuspenseResult<SwapQuote>;
1560
+ /**
1561
+ * Fetch a quote for a borrow swap operation with the specified parameters.
1562
+ *
1563
+ * Pausable suspense mode.
1564
+ *
1565
+ * ```tsx
1566
+ * const { data } = useBorrowSwapQuote({
1567
+ * market: {
1568
+ * sellPosition: userBorrowItem.id,
1569
+ * buyReserve: reserve.id,
1570
+ * amount: bigDecimal('1000'),
1571
+ * user: evmAddress('0x742d35cc…'),
1572
+ * },
1573
+ * suspense: true,
1574
+ * pause: true,
1575
+ * });
1576
+ * ```
1577
+ */
1578
+ declare function useBorrowSwapQuote(args: Pausable<UseBorrowSwapQuoteArgs> & Suspendable): PausableSuspenseResult<SwapQuote>;
1579
+ /**
1580
+ * Fetch a quote for a borrow swap operation with the specified parameters.
1581
+ *
1582
+ * ```tsx
1583
+ * const { data, error, loading } = useBorrowSwapQuote({
1584
+ * market: {
1585
+ * sellPosition: userBorrowItem.id,
1586
+ * buyReserve: reserve.id,
1587
+ * amount: bigDecimal('1000'),
1588
+ * user: evmAddress('0x742d35cc…'),
1589
+ * },
1590
+ * });
1591
+ * ```
1592
+ */
1593
+ declare function useBorrowSwapQuote(args: UseBorrowSwapQuoteArgs): ReadResult<SwapQuote>;
1594
+ /**
1595
+ * Fetch a quote for a borrow swap operation with the specified parameters.
1596
+ *
1597
+ * Pausable loading state mode.
1598
+ *
1599
+ * ```tsx
1600
+ * const { data, error, loading, paused } = useBorrowSwapQuote({
1601
+ * market: {
1602
+ * sellPosition: userBorrowItem.id,
1603
+ * buyReserve: reserve.id,
1604
+ * amount: bigDecimal('1000'),
1605
+ * user: evmAddress('0x742d35cc…'),
1606
+ * },
1607
+ * pause: true,
1608
+ * });
1609
+ * ```
1610
+ */
1611
+ declare function useBorrowSwapQuote(args: Pausable<UseBorrowSwapQuoteArgs>): PausableReadResult<SwapQuote>;
1612
+ /**
1613
+ * Low-level hook to execute a borrow swap quote action directly.
1614
+ *
1615
+ * @remarks
1616
+ * This hook **does not** actively watch for updated data on the swap quote.
1617
+ * Use this hook to retrieve quotes on demand as part of a larger workflow.
1618
+ *
1619
+ * ```ts
1620
+ * const [getQuote, { called, data, error, loading }] = useBorrowSwapQuoteAction();
1621
+ *
1622
+ * // …
1623
+ *
1624
+ * const result = await getQuote({
1625
+ * debtPosition: userBorrowItem.id,
1626
+ * buyReserve: reserve.id,
1627
+ * amount: bigDecimal('1000'),
1628
+ * user: evmAddress('0x742d35cc…'),
1629
+ * });
1630
+ *
1631
+ * if (result.isOk()) {
1632
+ * console.log('Borrow swap quote:', result.value);
1633
+ * } else {
1634
+ * console.error(result.error);
1635
+ * }
1636
+ * ```
1637
+ */
1638
+ declare function useBorrowSwapQuoteAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<BorrowSwapQuoteRequest, SwapQuote, UnexpectedError$1>;
1639
+ type SwapHandlerOptions = {
1640
+ cancel: CancelOperation;
1641
+ };
1642
+ /**
1643
+ */
1644
+ type UseSwapSignerRequest = TransactionRequest;
1645
+ /**
1646
+ */
1647
+ type SwapSignerError = CancelError | SigningError | UnexpectedError$1;
1648
+ /**
1649
+ */
1650
+ type UseSwapSignerResult = UseAsyncTask<UseSwapSignerRequest, PendingTransaction | Signature, SwapSignerError>;
1651
+ type PositionSwapPlan = PositionSwapApproval | SwapTypedData;
1652
+ type PositionSwapHandler = (plan: PositionSwapPlan, options: SwapHandlerOptions) => ResultAsync<PendingTransaction | Signature, SwapSignerError>;
1653
+ type PositionSwapValue = {
1654
+ quote?: SwapQuote;
1655
+ };
1656
+ /**
1657
+ */
1658
+ type UseSupplySwapRequest = Prettify<SupplySwapQuoteRequest & CurrencyQueryOptions>;
1048
1659
  /**
1049
- * Fetches all the position managers of a user for a specific spoke
1050
- *
1051
- * Pausable loading state mode.
1052
- *
1053
- * ```tsx
1054
- * const { data, error, loading, paused } = useSpokeUserPositionManagers({
1055
- * spoke: spokeId('SGVsbG8h'),
1056
- * user: evmAddress('0x123...'),
1057
- * pause: true,
1058
- * });
1059
- * ```
1060
1660
  */
1061
- declare function useSpokeUserPositionManagers(args: Pausable<UseSpokeUserPositionManagersArgs>): PausableReadResult<PaginatedSpokeUserPositionManagerResult>;
1062
-
1063
- type UseSwapQuoteArgs = Prettify<SwapQuoteRequest & CurrencyQueryOptions>;
1661
+ declare function useSupplySwap(handler: PositionSwapHandler): UseAsyncTask<SupplySwapQuoteRequest, SwapReceipt, SwapSignerError | SendTransactionError | PendingTransactionError | ValidationError<InsufficientBalanceError>>;
1064
1662
  /**
1065
- * @internal
1066
- * Fetch a swap quote for the specified trade parameters.
1663
+ */
1664
+ type UseBorrowSwapRequest = Prettify<BorrowSwapQuoteRequest & CurrencyQueryOptions>;
1665
+ /**
1666
+ */
1667
+ declare function useBorrowSwap(handler: PositionSwapHandler): UseAsyncTask<BorrowSwapQuoteRequest, SwapReceipt, SwapSignerError | SendTransactionError | PendingTransactionError | ValidationError<InsufficientBalanceError>>;
1668
+ type UseRepayWithSupplyQuoteArgs = Prettify<RepayWithSupplyQuoteRequest & CurrencyQueryOptions>;
1669
+ /**
1670
+ * Fetch a quote for a repay with supply operation with the specified parameters.
1067
1671
  *
1068
1672
  * This signature supports React Suspense:
1069
1673
  *
1070
1674
  * ```tsx
1071
- * const { data } = useSwapQuote({
1072
- * chainId: chainId(1),
1073
- * buy: { erc20: evmAddress('0xA0b86a33E6...') },
1074
- * sell: { erc20: evmAddress('0x6B175474E...') },
1075
- * amount: bigDecimal('1000'),
1076
- * kind: SwapKind.SELL,
1675
+ * const { data } = useRepayWithSupplyQuote({
1676
+ * market: {
1677
+ * sellPosition: userSupplyItem.id,
1678
+ * buyPosition: userBorrowItem.id,
1679
+ * amount: bigDecimal('1000'),
1680
+ * user: evmAddress('0x742d35cc…'),
1681
+ * },
1077
1682
  * suspense: true,
1078
1683
  * });
1079
1684
  * ```
1080
1685
  */
1081
- declare function useSwapQuote(args: UseSwapQuoteArgs & Suspendable): SuspenseResult<SwapQuote>;
1686
+ declare function useRepayWithSupplyQuote(args: UseRepayWithSupplyQuoteArgs & Suspendable): SuspenseResult<SwapQuote>;
1082
1687
  /**
1083
- * @internal
1084
- * Fetch a swap quote for the specified trade parameters.
1688
+ * Fetch a quote for a repay with supply operation with the specified parameters.
1085
1689
  *
1086
1690
  * Pausable suspense mode.
1087
1691
  *
1088
1692
  * ```tsx
1089
- * const { data } = useSwapQuote({
1090
- * chainId: chainId(1),
1091
- * buy: { erc20: evmAddress('0xA0b86a33E6...') },
1092
- * sell: { erc20: evmAddress('0x6B175474E...') },
1093
- * amount: bigDecimal('1000'),
1094
- * kind: SwapKind.SELL,
1095
- * from: evmAddress('0x742d35cc...'),
1693
+ * const { data } = useRepayWithSupplyQuote({
1694
+ * market: {
1695
+ * sellPosition: userSupplyItem.id,
1696
+ * buyPosition: userBorrowItem.id,
1697
+ * amount: bigDecimal('1000'),
1698
+ * user: evmAddress('0x742d35cc…'),
1699
+ * },
1096
1700
  * suspense: true,
1097
1701
  * pause: true,
1098
1702
  * });
1099
1703
  * ```
1100
1704
  */
1101
- declare function useSwapQuote(args: Pausable<UseSwapQuoteArgs> & Suspendable): PausableSuspenseResult<SwapQuote>;
1705
+ declare function useRepayWithSupplyQuote(args: Pausable<UseRepayWithSupplyQuoteArgs> & Suspendable): PausableSuspenseResult<SwapQuote>;
1102
1706
  /**
1103
- * @internal
1104
- * Fetch a swap quote for the specified trade parameters.
1707
+ * Fetch a quote for a repay with supply operation with the specified parameters.
1105
1708
  *
1106
1709
  * ```tsx
1107
- * const { data, error, loading } = useSwapQuote({
1108
- * chainId: chainId(1),
1109
- * buy: { erc20: evmAddress('0xA0b86a33E6...') },
1110
- * sell: { erc20: evmAddress('0x6B175474E...') },
1111
- * amount: bigDecimal('1000'),
1112
- * kind: SwapKind.SELL,
1710
+ * const { data, error, loading } = useRepayWithSupplyQuote({
1711
+ * market: {
1712
+ * sellPosition: userSupplyItem.id,
1713
+ * buyPosition: userBorrowItem.id,
1714
+ * amount: bigDecimal('1000'),
1715
+ * user: evmAddress('0x742d35cc…'),
1716
+ * },
1113
1717
  * });
1114
1718
  * ```
1115
1719
  */
1116
- declare function useSwapQuote(args: UseSwapQuoteArgs): ReadResult<SwapQuote>;
1720
+ declare function useRepayWithSupplyQuote(args: UseRepayWithSupplyQuoteArgs): ReadResult<SwapQuote>;
1117
1721
  /**
1118
- * @internal
1119
- * Fetch a swap quote for the specified trade parameters.
1722
+ * Fetch a quote for a repay with supply operation with the specified parameters.
1120
1723
  *
1121
1724
  * Pausable loading state mode.
1122
1725
  *
1123
1726
  * ```tsx
1124
- * const { data, error, loading, paused } = useSwapQuote({
1125
- * chainId: chainId(1),
1126
- * buy: { erc20: evmAddress('0xA0b86a33E6...') },
1127
- * sell: { erc20: evmAddress('0x6B175474E...') },
1128
- * amount: bigDecimal('1000'),
1129
- * kind: SwapKind.SELL,
1130
- * from: evmAddress('0x742d35cc...'),
1727
+ * const { data, error, loading, paused } = useRepayWithSupplyQuote({
1728
+ * market: {
1729
+ * sellPosition: userSupplyItem.id,
1730
+ * buyPosition: userBorrowItem.id,
1731
+ * amount: bigDecimal('1000'),
1732
+ * user: evmAddress('0x742d35cc…'),
1733
+ * },
1131
1734
  * pause: true,
1132
1735
  * });
1133
1736
  * ```
1134
1737
  */
1135
- declare function useSwapQuote(args: Pausable<UseSwapQuoteArgs>): PausableReadResult<SwapQuote>;
1738
+ declare function useRepayWithSupplyQuote(args: Pausable<UseRepayWithSupplyQuoteArgs>): PausableReadResult<SwapQuote>;
1136
1739
  /**
1137
- * @internal
1138
- * Low-level hook to execute a swap quote action directly.
1740
+ * Low-level hook to execute a repay with supply quote action directly.
1139
1741
  *
1140
- * @experimental This hook is experimental and may be subject to breaking changes.
1141
1742
  * @remarks
1142
1743
  * This hook **does not** actively watch for updated data on the swap quote.
1143
- * Use this hook to retrieve quotes on demand as part of a larger workflow
1144
- * (e.g., in an event handler to get a fresh quote before executing a swap).
1744
+ * Use this hook to retrieve quotes on demand as part of a larger workflow.
1145
1745
  *
1146
1746
  * ```ts
1147
- * const [getQuote, { called, data, error, loading }] = useSwapQuoteAction();
1747
+ * const [getQuote, { called, data, error, loading }] = useRepayWithSupplyQuoteAction();
1148
1748
  *
1149
1749
  * // …
1150
1750
  *
1151
1751
  * const result = await getQuote({
1152
- * chainId: chainId(1),
1153
- * buy: { erc20: evmAddress('0xA0b86a33E6...') },
1154
- * sell: { erc20: evmAddress('0x6B175474E...') },
1752
+ * repayWithReserve: reserve.id,
1753
+ * debtPosition: userBorrowItem.id,
1155
1754
  * amount: bigDecimal('1000'),
1156
- * kind: SwapKind.SELL,
1755
+ * user: evmAddress('0x742d35cc…'),
1157
1756
  * });
1158
1757
  *
1159
1758
  * if (result.isOk()) {
1160
- * console.log('Swap quote:', result.value);
1759
+ * console.log('Repay with supply quote:', result.value);
1161
1760
  * } else {
1162
1761
  * console.error(result.error);
1163
1762
  * }
1164
1763
  * ```
1165
1764
  */
1166
- declare function useSwapQuoteAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<SwapQuoteRequest, SwapQuote, UnexpectedError$1>;
1167
- type UseSwappableTokensArgs = SwappableTokensRequest;
1765
+ declare function useRepayWithSupplyQuoteAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<RepayWithSupplyQuoteRequest, SwapQuote, UnexpectedError$1>;
1168
1766
  /**
1169
- * @internal
1170
- * Fetch the list of tokens available for swapping on a specific chain.
1767
+ */
1768
+ type UseRepayWithSupplyRequest = Prettify<RepayWithSupplyQuoteRequest & CurrencyQueryOptions>;
1769
+ /**
1770
+ */
1771
+ declare function useRepayWithSupply(handler: PositionSwapHandler): UseAsyncTask<RepayWithSupplyQuoteRequest, SwapReceipt, SwapSignerError | SendTransactionError | PendingTransactionError | ValidationError<InsufficientBalanceError>>;
1772
+ type UseWithdrawSwapQuoteArgs = Prettify<WithdrawSwapQuoteRequest & CurrencyQueryOptions>;
1773
+ /**
1774
+ * Fetch a quote for a withdraw swap operation with the specified parameters.
1171
1775
  *
1172
1776
  * This signature supports React Suspense:
1173
1777
  *
1174
1778
  * ```tsx
1175
- * const { data } = useSwappableTokens({
1176
- * query: { chainIds: [chainId(1)] },
1779
+ * const { data } = useWithdrawSwapQuote({
1780
+ * market: {
1781
+ * position: userSupplyItem.id,
1782
+ * buyReserve: reserve.id,
1783
+ * amount: bigDecimal('1000'),
1784
+ * user: evmAddress('0x742d35cc…'),
1785
+ * },
1177
1786
  * suspense: true,
1178
1787
  * });
1179
1788
  * ```
1180
1789
  */
1181
- declare function useSwappableTokens(args: UseSwappableTokensArgs & Suspendable): SuspenseResult<Token[]>;
1790
+ declare function useWithdrawSwapQuote(args: UseWithdrawSwapQuoteArgs & Suspendable): SuspenseResult<SwapQuote>;
1182
1791
  /**
1183
- * @internal
1184
- * Fetch the list of tokens available for swapping on a specific chain.
1792
+ * Fetch a quote for a withdraw swap operation with the specified parameters.
1185
1793
  *
1186
1794
  * Pausable suspense mode.
1187
1795
  *
1188
1796
  * ```tsx
1189
- * const { data } = useSwappableTokens({
1190
- * query: { chainIds: [chainId(1)] },
1797
+ * const { data } = useWithdrawSwapQuote({
1798
+ * market: {
1799
+ * position: userSupplyItem.id,
1800
+ * buyReserve: reserve.id,
1801
+ * amount: bigDecimal('1000'),
1802
+ * user: evmAddress('0x742d35cc…'),
1803
+ * },
1191
1804
  * suspense: true,
1192
1805
  * pause: true,
1193
1806
  * });
1194
1807
  * ```
1195
1808
  */
1196
- declare function useSwappableTokens(args: Pausable<UseSwappableTokensArgs> & Suspendable): PausableSuspenseResult<Token[]>;
1809
+ declare function useWithdrawSwapQuote(args: Pausable<UseWithdrawSwapQuoteArgs> & Suspendable): PausableSuspenseResult<SwapQuote>;
1197
1810
  /**
1198
- * @internal
1199
- * Fetch the list of tokens available for swapping on a specific chain.
1811
+ * Fetch a quote for a withdraw swap operation with the specified parameters.
1200
1812
  *
1201
1813
  * ```tsx
1202
- * const { data, error, loading } = useSwappableTokens({
1203
- * query: { chainIds: [chainId(1)] },
1814
+ * const { data, error, loading } = useWithdrawSwapQuote({
1815
+ * market: {
1816
+ * position: userSupplyItem.id,
1817
+ * buyReserve: reserve.id,
1818
+ * amount: bigDecimal('1000'),
1819
+ * user: evmAddress('0x742d35cc…'),
1820
+ * },
1204
1821
  * });
1205
1822
  * ```
1206
1823
  */
1207
- declare function useSwappableTokens(args: UseSwappableTokensArgs): ReadResult<Token[]>;
1824
+ declare function useWithdrawSwapQuote(args: UseWithdrawSwapQuoteArgs): ReadResult<SwapQuote>;
1208
1825
  /**
1209
- * @internal
1210
- * Fetch the list of tokens available for swapping on a specific chain.
1826
+ * Fetch a quote for a withdraw swap operation with the specified parameters.
1211
1827
  *
1212
1828
  * Pausable loading state mode.
1213
1829
  *
1214
1830
  * ```tsx
1215
- * const { data, error, loading, paused } = useSwappableTokens({
1216
- * query: { chainIds: [chainId(1)] },
1831
+ * const { data, error, loading, paused } = useWithdrawSwapQuote({
1832
+ * market: {
1833
+ * position: userSupplyItem.id,
1834
+ * buyReserve: reserve.id,
1835
+ * amount: bigDecimal('1000'),
1836
+ * user: evmAddress('0x742d35cc…'),
1837
+ * },
1217
1838
  * pause: true,
1218
1839
  * });
1219
1840
  * ```
1220
1841
  */
1221
- declare function useSwappableTokens(args: Pausable<UseSwappableTokensArgs>): PausableReadResult<Token[]>;
1222
- type UseUserSwapsArgs = Prettify<UserSwapsRequest & CurrencyQueryOptions>;
1842
+ declare function useWithdrawSwapQuote(args: Pausable<UseWithdrawSwapQuoteArgs>): PausableReadResult<SwapQuote>;
1223
1843
  /**
1224
- * @internal
1225
- * Fetch the user's swap history for a specific chain.
1844
+ * Low-level hook to execute a withdraw swap quote action directly.
1226
1845
  *
1227
- * This signature supports React Suspense:
1846
+ * @remarks
1847
+ * This hook **does not** actively watch for updated data on the swap quote.
1848
+ * Use this hook to retrieve quotes on demand as part of a larger workflow.
1228
1849
  *
1229
- * ```tsx
1230
- * const { data } = useUserSwaps({
1231
- * chainId: chainId(1),
1232
- * user: evmAddress('0x742d35cc...'),
1233
- * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1234
- * suspense: true,
1235
- * });
1236
- * ```
1237
- */
1238
- declare function useUserSwaps(args: UseUserSwapsArgs & Suspendable): SuspenseResult<PaginatedUserSwapsResult>;
1239
- /**
1240
- * @internal
1241
- * Fetch the user's swap history for a specific chain.
1850
+ * ```ts
1851
+ * const [getQuote, { called, data, error, loading }] = useWithdrawSwapQuoteAction();
1242
1852
  *
1243
- * Pausable suspense mode.
1853
+ * //
1244
1854
  *
1245
- * ```tsx
1246
- * const { data } = useUserSwaps({
1247
- * chainId: chainId(1),
1248
- * user: evmAddress('0x742d35cc...'),
1249
- * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1250
- * suspense: true,
1251
- * pause: true,
1855
+ * const result = await getQuote({
1856
+ * position: userSupplyItem.id,
1857
+ * buyReserve: reserve.id,
1858
+ * amount: bigDecimal('1000'),
1859
+ * user: evmAddress('0x742d35cc…'),
1252
1860
  * });
1861
+ *
1862
+ * if (result.isOk()) {
1863
+ * console.log('Withdraw swap quote:', result.value);
1864
+ * } else {
1865
+ * console.error(result.error);
1866
+ * }
1253
1867
  * ```
1254
1868
  */
1255
- declare function useUserSwaps(args: Pausable<UseUserSwapsArgs> & Suspendable): PausableSuspenseResult<PaginatedUserSwapsResult>;
1869
+ declare function useWithdrawSwapQuoteAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<WithdrawSwapQuoteRequest, SwapQuote, UnexpectedError$1>;
1256
1870
  /**
1257
- * @internal
1258
- * Fetch the user's swap history for a specific chain.
1259
- *
1260
- * ```tsx
1261
- * const { data, error, loading } = useUserSwaps({
1262
- * chainId: chainId(1),
1263
- * user: evmAddress('0x742d35cc...'),
1264
- * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1265
- * });
1266
- * ```
1267
1871
  */
1268
- declare function useUserSwaps(args: UseUserSwapsArgs): ReadResult<PaginatedUserSwapsResult>;
1872
+ type UseWithdrawSwapRequest = Prettify<WithdrawSwapQuoteRequest & CurrencyQueryOptions>;
1269
1873
  /**
1270
- * @internal
1271
- * Fetch the user's swap history for a specific chain.
1272
- *
1273
- * Pausable loading state mode.
1274
- *
1275
- * ```tsx
1276
- * const { data, error, loading, paused } = useUserSwaps({
1277
- * chainId: chainId(1),
1278
- * user: evmAddress('0x742d35cc...'),
1279
- * filterBy: [SwapStatusFilter.FULFILLED, SwapStatusFilter.OPEN],
1280
- * pause: true,
1281
- * });
1282
- * ```
1283
1874
  */
1284
- declare function useUserSwaps(args: Pausable<UseUserSwapsArgs>): PausableReadResult<PaginatedUserSwapsResult>;
1285
- type UseSwapTokensRequest = Prettify<PrepareSwapRequest & CurrencyQueryOptions>;
1286
- type SwapIntent = SwapByIntentTypedData | SwapByIntentWithApprovalRequired | SwapTransactionRequest | SwapApprovalRequired;
1287
- type SwapHandlerOptions = {
1288
- cancel: CancelOperation;
1289
- };
1290
- type SwapHandler = (intent: SwapIntent, options: SwapHandlerOptions) => ResultAsync<ERC20PermitSignature | SwapReceipt, SendTransactionError | PendingTransactionError>;
1875
+ declare function useWithdrawSwap(handler: PositionSwapHandler): UseAsyncTask<WithdrawSwapQuoteRequest, SwapReceipt, SwapSignerError | SendTransactionError | PendingTransactionError | ValidationError<InsufficientBalanceError>>;
1876
+ type UseTokenSwapRequest = Prettify<TokenSwapQuoteRequest & CurrencyQueryOptions>;
1877
+ type TokenSwapPlan = SwapTypedData | Erc20Approval | SwapTransactionRequest;
1878
+ type TokenSwapHandler = (plan: TokenSwapPlan, options: SwapHandlerOptions) => ResultAsync<ERC20PermitSignature | PendingTransaction | Signature, SwapSignerError>;
1291
1879
  /**
1292
- * @internal
1293
1880
  * Orchestrate the swap execution plan.
1294
1881
  *
1295
1882
  * ```tsx
1296
- * const [sendTransaction, sending] = useSendTransaction(wallet);
1297
- * const [signSwapByIntentWith, signing] = useSignSwapByIntentWith(wallet);
1883
+ * const [sendTransaction] = useSendTransaction(wallet);
1884
+ * const [signSwapTypedData] = useSignSwapTypedData(wallet);
1298
1885
  *
1299
- * const [swap, swapping] = useSwapTokens((plan) => {
1886
+ * const [swap, { loading, error }] = useTokenSwap((plan) => {
1300
1887
  * switch (plan.__typename) {
1301
- * case 'SwapByIntentTypedData':
1302
- * return signSwapByIntentWith(plan);
1888
+ * case 'SwapTypedData':
1889
+ * return signSwapTypedData(plan);
1303
1890
  *
1304
1891
  * case 'SwapApprovalRequired':
1305
- * case 'SwapByIntentWithApprovalRequired':
1306
1892
  * return sendTransaction(plan.transaction);
1307
1893
  *
1894
+ * case 'SwapByIntentWithApprovalRequired':
1895
+ * return sendTransaction(plan.approval.byTransaction);
1896
+ *
1308
1897
  * case 'SwapTransactionRequest':
1309
1898
  * return sendTransaction(plan.transaction);
1310
1899
  * }
@@ -1313,11 +1902,11 @@ type SwapHandler = (intent: SwapIntent, options: SwapHandlerOptions) => ResultAs
1313
1902
  * const result = await swap({
1314
1903
  * market: {
1315
1904
  * chainId: chainId(1),
1316
- * buy: { erc20: evmAddress('0xA0b86a33E6...') },
1317
- * sell: { erc20: evmAddress('0x6B175474E...') },
1905
+ * buy: { erc20: evmAddress('0xA0b86a33E6') },
1906
+ * sell: { erc20: evmAddress('0x6B175474E') },
1318
1907
  * amount: bigDecimal('1000'),
1319
- * kind: SwapKind.SELL,
1320
- * user: evmAddress('0x742d35cc...'),
1908
+ * kind: SwapKind.Sell,
1909
+ * user: evmAddress('0x742d35cc'),
1321
1910
  * },
1322
1911
  * });
1323
1912
  *
@@ -1329,32 +1918,31 @@ type SwapHandler = (intent: SwapIntent, options: SwapHandlerOptions) => ResultAs
1329
1918
  * // result.value: SwapReceipt
1330
1919
  * ```
1331
1920
  */
1332
- declare function useSwapTokens(handler: SwapHandler): UseAsyncTask<PrepareSwapRequest, SwapReceipt, SendTransactionError | PendingTransactionError | ValidationError<InsufficientBalanceError>>;
1333
- type CancelSwapHandler = (data: CancelSwapTypedData | TransactionRequest) => ResultAsync<ERC20PermitSignature | PendingTransaction, SigningError | UnexpectedError$1>;
1921
+ declare function useTokenSwap(handler: TokenSwapHandler): UseAsyncTask<UseTokenSwapRequest, SwapReceipt, SendTransactionError | PendingTransactionError | ValidationError<InsufficientBalanceError>>;
1922
+ type CancelSwapHandler = (data: SwapTypedData | TransactionRequest, options: SwapHandlerOptions) => ResultAsync<PendingTransaction | Signature, SwapSignerError>;
1334
1923
  declare class CannotCancelSwapError extends ResultAwareError {
1335
1924
  name: "CannotCancelSwapError";
1336
1925
  }
1337
1926
  type CancelSwapError = CancelError | CannotCancelSwapError | SigningError | TimeoutError | TransactionError | UnexpectedError$1;
1338
1927
  /**
1339
- * @internal
1340
1928
  * Executes the complete swap cancellation workflow combining preparation and execution.
1341
1929
  *
1342
1930
  * ```tsx
1343
1931
  * const [sendTransaction] = useSendTransaction(wallet);
1344
- * const [signSwapCancelWith] = useSignSwapCancelWith(wallet);
1932
+ * const [signSwapTypedData] = useSignSwapTypedData(wallet);
1345
1933
  *
1346
- * const [cancelSwap, {loading, error}] = useCancelSwap((plan: CancelSwapTypedData | TransactionRequest) => {
1934
+ * const [cancelSwap, { loading, error }] = useCancelSwap((plan) => {
1347
1935
  * switch (plan.__typename) {
1348
1936
  * case 'TransactionRequest':
1349
1937
  * return sendTransaction(plan);
1350
1938
  *
1351
- * case 'CancelSwapTypedData':
1352
- * return signSwapCancelWith(plan);
1939
+ * case 'SwapTypedData':
1940
+ * return signSwapTypedData(plan);
1353
1941
  * }
1354
1942
  * });
1355
1943
  *
1356
1944
  * const result = await cancelSwap({
1357
- * id: swapId('123...'),
1945
+ * id: swapId('123'),
1358
1946
  * });
1359
1947
  *
1360
1948
  * if (result.isErr()) {
@@ -1377,7 +1965,10 @@ declare function useCancelSwap(handler: CancelSwapHandler): UseAsyncTask<Prepare
1377
1965
  * switch (plan.__typename) {
1378
1966
  * case 'TransactionRequest':
1379
1967
  * return sendTransaction(plan);
1968
+ *
1380
1969
  * case 'Erc20ApprovalRequired':
1970
+ * return sendTransaction(plan.approval.byTransaction);
1971
+ *
1381
1972
  * case 'PreContractActionRequired':
1382
1973
  * return sendTransaction(plan.transaction);
1383
1974
  * }
@@ -1421,7 +2012,7 @@ declare function useCancelSwap(handler: CancelSwapHandler): UseAsyncTask<Prepare
1421
2012
  *
1422
2013
  * @param handler - The handler that will be used to handle the transactions.
1423
2014
  */
1424
- declare function useSupply(handler: TransactionHandler): UseAsyncTask<SupplyRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
2015
+ declare function useSupply(handler: TransactionHandler<TransactionRequest | Erc20ApprovalRequired | PreContractActionRequired, Signature | PendingTransaction>): UseAsyncTask<SupplyRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
1425
2016
  /**
1426
2017
  * A hook that provides a way to borrow assets from an Aave reserve.
1427
2018
  *
@@ -1431,7 +2022,7 @@ declare function useSupply(handler: TransactionHandler): UseAsyncTask<SupplyRequ
1431
2022
  * switch (plan.__typename) {
1432
2023
  * case 'TransactionRequest':
1433
2024
  * return sendTransaction(plan);
1434
- * case 'Erc20ApprovalRequired':
2025
+ *
1435
2026
  * case 'PreContractActionRequired':
1436
2027
  * return sendTransaction(plan.transaction);
1437
2028
  * }
@@ -1475,7 +2066,7 @@ declare function useSupply(handler: TransactionHandler): UseAsyncTask<SupplyRequ
1475
2066
  *
1476
2067
  * @param handler - The handler that will be used to handle the transactions.
1477
2068
  */
1478
- declare function useBorrow(handler: TransactionHandler): UseAsyncTask<BorrowRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
2069
+ declare function useBorrow(handler: TransactionHandler<TransactionRequest | PreContractActionRequired, PendingTransaction>): UseAsyncTask<BorrowRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
1479
2070
  /**
1480
2071
  * A hook that provides a way to repay borrowed assets to an Aave reserve.
1481
2072
  *
@@ -1485,7 +2076,10 @@ declare function useBorrow(handler: TransactionHandler): UseAsyncTask<BorrowRequ
1485
2076
  * switch (plan.__typename) {
1486
2077
  * case 'TransactionRequest':
1487
2078
  * return sendTransaction(plan);
2079
+ *
1488
2080
  * case 'Erc20ApprovalRequired':
2081
+ * return sendTransaction(plan.approval.byTransaction);
2082
+ *
1489
2083
  * case 'PreContractActionRequired':
1490
2084
  * return sendTransaction(plan.transaction);
1491
2085
  * }
@@ -1529,7 +2123,7 @@ declare function useBorrow(handler: TransactionHandler): UseAsyncTask<BorrowRequ
1529
2123
  *
1530
2124
  * @param handler - The handler that will be used to handle the transactions.
1531
2125
  */
1532
- declare function useRepay(handler: TransactionHandler): UseAsyncTask<RepayRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
2126
+ declare function useRepay(handler: TransactionHandler<TransactionRequest | Erc20ApprovalRequired | PreContractActionRequired, Signature | PendingTransaction>): UseAsyncTask<RepayRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
1533
2127
  /**
1534
2128
  * A hook that provides a way to withdraw supplied assets from an Aave reserve.
1535
2129
  *
@@ -1539,7 +2133,7 @@ declare function useRepay(handler: TransactionHandler): UseAsyncTask<RepayReques
1539
2133
  * switch (plan.__typename) {
1540
2134
  * case 'TransactionRequest':
1541
2135
  * return sendTransaction(plan);
1542
- * case 'Erc20ApprovalRequired':
2136
+ *
1543
2137
  * case 'PreContractActionRequired':
1544
2138
  * return sendTransaction(plan.transaction);
1545
2139
  * }
@@ -1583,7 +2177,7 @@ declare function useRepay(handler: TransactionHandler): UseAsyncTask<RepayReques
1583
2177
  *
1584
2178
  * @param handler - The handler that will be used to handle the transactions.
1585
2179
  */
1586
- declare function useWithdraw(handler: TransactionHandler): UseAsyncTask<WithdrawRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
2180
+ declare function useWithdraw(handler: TransactionHandler<TransactionRequest | PreContractActionRequired, PendingTransaction>): UseAsyncTask<WithdrawRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
1587
2181
  /**
1588
2182
  * A hook that provides a way to renounce a position manager of a user for a specific spoke.
1589
2183
  *
@@ -1625,64 +2219,23 @@ declare function useWithdraw(handler: TransactionHandler): UseAsyncTask<Withdraw
1625
2219
  *
1626
2220
  * @param handler - The handler that will be used to handle the transaction.
1627
2221
  */
1628
- declare function useRenounceSpokeUserPositionManager(handler: TransactionHandler): UseAsyncTask<RenounceSpokeUserPositionManagerRequest, TxHash, SendTransactionError | PendingTransactionError>;
2222
+ declare function useRenounceSpokeUserPositionManager(handler: TransactionHandler<TransactionRequest, PendingTransaction>): UseAsyncTask<RenounceSpokeUserPositionManagerRequest, TxHash, SendTransactionError | PendingTransactionError>;
1629
2223
  /**
1630
- * A hook that provides a way to update the user risk premium for a spoke.
2224
+ * Hook for updating user position conditions (dynamic config and/or risk premium).
1631
2225
  *
1632
2226
  * ```ts
1633
2227
  * const [sendTransaction] = useSendTransaction(wallet);
1634
- * const [updateUserRiskPremium, { loading, error }] = useUpdateUserRiskPremium((transaction, { cancel }) => {
2228
+ * const [update, { loading, error }] = useUpdateUserPositionConditions((transaction, { cancel }) => {
1635
2229
  * return sendTransaction(transaction);
1636
2230
  * });
1637
2231
  *
1638
2232
  * // …
1639
2233
  *
1640
- * const result = await updateUserRiskPremium({ ... });
1641
- *
1642
- * if (result.isErr()) {
1643
- * switch (result.error.name) {
1644
- * case 'CancelError':
1645
- * // The user cancelled the operation
1646
- * return;
1647
- *
1648
- * case 'SigningError':
1649
- * console.error(`Failed to sign the transaction: ${result.error.message}`);
1650
- * break;
1651
- *
1652
- * case 'TimeoutError':
1653
- * console.error(`Transaction timed out: ${result.error.message}`);
1654
- * break;
1655
- *
1656
- * case 'TransactionError':
1657
- * console.error(`Transaction failed: ${result.error.message}`);
1658
- * break;
1659
- *
1660
- * case 'UnexpectedError':
1661
- * console.error(result.error.message);
1662
- * break;
1663
- * }
1664
- * return;
1665
- * }
1666
- *
1667
- * console.log('Transaction sent with hash:', result.value);
1668
- * ```
1669
- *
1670
- * @param handler - The handler that will be used to handle the transaction.
1671
- */
1672
- declare function useUpdateUserRiskPremium(handler: TransactionHandler): UseAsyncTask<UpdateUserRiskPremiumRequest, TxHash, SendTransactionError | PendingTransactionError>;
1673
- /**
1674
- * A hook that provides a way to update the user dynamic configuration for a spoke.
1675
- *
1676
- * ```ts
1677
- * const [sendTransaction] = useSendTransaction(wallet);
1678
- * const [updateUserDynamicConfig, { loading, error }] = useUpdateUserDynamicConfig((transaction, { cancel }) => {
1679
- * return sendTransaction(transaction);
2234
+ * const result = await update({
2235
+ * userPositionId: userPosition.id,
2236
+ * update: UserPositionConditionsUpdate.AllDynamicConfig,
1680
2237
  * });
1681
2238
  *
1682
- * // …
1683
- *
1684
- * const result = await updateUserDynamicConfig({ ... });
1685
- *
1686
2239
  * if (result.isErr()) {
1687
2240
  * switch (result.error.name) {
1688
2241
  * case 'CancelError':
@@ -1713,20 +2266,24 @@ declare function useUpdateUserRiskPremium(handler: TransactionHandler): UseAsync
1713
2266
  *
1714
2267
  * @param handler - The handler that will be used to handle the transaction.
1715
2268
  */
1716
- declare function useUpdateUserDynamicConfig(handler: TransactionHandler): UseAsyncTask<UpdateUserDynamicConfigRequest, TxHash, SendTransactionError | PendingTransactionError>;
2269
+ declare function useUpdateUserPositionConditions(handler: TransactionHandler<TransactionRequest, PendingTransaction>): UseAsyncTask<UpdateUserPositionConditionsRequest, TxHash, SendTransactionError | PendingTransactionError>;
1717
2270
  /**
1718
- * Hook for setting whether a user's supply should be used as collateral.
2271
+ * Hook for updating the collateral status of user's supplies.
1719
2272
  *
1720
2273
  * ```ts
1721
2274
  * const [sendTransaction] = useSendTransaction(wallet);
1722
- * const [setUserSupplyAsCollateral, { loading, error }] = useSetUserSupplyAsCollateral((transaction, { cancel }) => {
2275
+ * const [setUserSuppliesAsCollateral, { loading, error }] = useSetUserSuppliesAsCollateral((transaction, { cancel }) => {
1723
2276
  * return sendTransaction(transaction);
1724
2277
  * });
1725
2278
  *
1726
- * const result = await setUserSupplyAsCollateral({
1727
- * reserve: reserveId('SGVsbG8h'),
1728
- * sender: evmAddress('0x456...'),
1729
- * enableCollateral: true,
2279
+ * const result = await setUserSuppliesAsCollateral({
2280
+ * changes: [
2281
+ * {
2282
+ * reserve: reserve.id,
2283
+ * enableCollateral: true
2284
+ * }
2285
+ * ],
2286
+ * sender: evmAddress('0x456...')
1730
2287
  * });
1731
2288
  *
1732
2289
  * if (result.isErr()) {
@@ -1759,7 +2316,7 @@ declare function useUpdateUserDynamicConfig(handler: TransactionHandler): UseAsy
1759
2316
  *
1760
2317
  * @param handler - The handler that will be used to handle the transaction.
1761
2318
  */
1762
- declare function useSetUserSupplyAsCollateral(handler: TransactionHandler): UseAsyncTask<SetUserSupplyAsCollateralRequest, TxHash, SendTransactionError | PendingTransactionError>;
2319
+ declare function useSetUserSuppliesAsCollateral(handler: TransactionHandler<TransactionRequest, PendingTransaction>): UseAsyncTask<SetUserSuppliesAsCollateralRequest, TxHash, SendTransactionError | PendingTransactionError>;
1763
2320
  /**
1764
2321
  * A hook that provides a way to liquidate a user's position.
1765
2322
  *
@@ -1769,7 +2326,10 @@ declare function useSetUserSupplyAsCollateral(handler: TransactionHandler): UseA
1769
2326
  * switch (plan.__typename) {
1770
2327
  * case 'TransactionRequest':
1771
2328
  * return sendTransaction(plan);
2329
+ *
1772
2330
  * case 'Erc20ApprovalRequired':
2331
+ * return sendTransaction(plan.approval.byTransaction);
2332
+ *
1773
2333
  * case 'PreContractActionRequired':
1774
2334
  * return sendTransaction(plan.transaction);
1775
2335
  * }
@@ -1819,7 +2379,7 @@ declare function useSetUserSupplyAsCollateral(handler: TransactionHandler): UseA
1819
2379
  *
1820
2380
  * @param handler - The handler that will be used to handle the transactions.
1821
2381
  */
1822
- declare function useLiquidatePosition(handler: TransactionHandler): UseAsyncTask<LiquidatePositionRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
2382
+ declare function useLiquidatePosition(handler: TransactionHandler<TransactionRequest | Erc20ApprovalRequired | PreContractActionRequired, PendingTransaction>): UseAsyncTask<LiquidatePositionRequest, TxHash, SendTransactionError | PendingTransactionError | ValidationError$1<InsufficientBalanceError>>;
1823
2383
  /**
1824
2384
  * A hook that provides a way to set or remove a position manager for a user on a specific spoke.
1825
2385
  *
@@ -1881,7 +2441,7 @@ declare function useLiquidatePosition(handler: TransactionHandler): UseAsyncTask
1881
2441
  *
1882
2442
  * @param handler - The handler that will be used to handle the transaction.
1883
2443
  */
1884
- declare function useSetSpokeUserPositionManager(handler: TransactionHandler): UseAsyncTask<SetSpokeUserPositionManagerRequest, TxHash, SendTransactionError | PendingTransactionError>;
2444
+ declare function useSetSpokeUserPositionManager(handler: TransactionHandler<TransactionRequest, PendingTransaction>): UseAsyncTask<SetSpokeUserPositionManagerRequest, TxHash, SendTransactionError | PendingTransactionError>;
1885
2445
  /**
1886
2446
  * Preview the impact of a potential action on a user's position.
1887
2447
  *
@@ -2011,7 +2571,7 @@ declare function usePreview(args: UsePreviewArgs): ReadResult<PreviewUserPositio
2011
2571
  * ```
2012
2572
  */
2013
2573
  declare function usePreview(args: Pausable<UsePreviewArgs>): PausableReadResult<PreviewUserPosition>;
2014
- type UseActivitiesArgs = Prettify<ActivitiesRequest & CurrencyQueryOptions>;
2574
+ type UseActivitiesArgs = Prettify<ActivitiesRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
2015
2575
  /**
2016
2576
  * Fetch paginated list of activities.
2017
2577
  *
@@ -2093,9 +2653,9 @@ declare function useActivities(args: Pausable<UseActivitiesArgs>): PausableReadR
2093
2653
  * @param options - The query options.
2094
2654
  * @returns The user history.
2095
2655
  */
2096
- declare function useActivitiesAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<ActivitiesRequest, PaginatedActivitiesResult, UnexpectedError>;
2656
+ declare function useActivitiesAction(options?: CurrencyQueryOptions & TimeWindowQueryOptions): UseAsyncTask<ActivitiesRequest, PaginatedActivitiesResult, UnexpectedError>;
2097
2657
 
2098
- type UseUserSuppliesArgs = Prettify<UserSuppliesRequest & CurrencyQueryOptions>;
2658
+ type UseUserSuppliesArgs = Prettify<UserSuppliesRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
2099
2659
  /**
2100
2660
  * Fetch all user supply positions.
2101
2661
  *
@@ -2208,8 +2768,8 @@ declare function useUserSupplies(args: Pausable<UseUserSuppliesArgs>): PausableR
2208
2768
  * }
2209
2769
  * ```
2210
2770
  */
2211
- declare function useUserSuppliesAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<UserSuppliesRequest, UserSupplyItem[], UnexpectedError>;
2212
- type UseUserBorrowsArgs = Prettify<UserBorrowsRequest & CurrencyQueryOptions>;
2771
+ declare function useUserSuppliesAction(options?: CurrencyQueryOptions & TimeWindowQueryOptions): UseAsyncTask<UserSuppliesRequest, UserSupplyItem[], UnexpectedError>;
2772
+ type UseUserBorrowsArgs = Prettify<UserBorrowsRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
2213
2773
  /**
2214
2774
  * Fetch all user borrow positions.
2215
2775
  *
@@ -2315,7 +2875,7 @@ declare function useUserBorrows(args: Pausable<UseUserBorrowsArgs>): PausableRea
2315
2875
  * }
2316
2876
  * ```
2317
2877
  */
2318
- declare function useUserBorrowsAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<UserBorrowsRequest, UserBorrowItem[], UnexpectedError>;
2878
+ declare function useUserBorrowsAction(options?: CurrencyQueryOptions & TimeWindowQueryOptions): UseAsyncTask<UserBorrowsRequest, UserBorrowItem[], UnexpectedError>;
2319
2879
  type UseUserSummaryArgs = Prettify<UserSummaryRequest & TimeWindowQueryOptions & CurrencyQueryOptions>;
2320
2880
  /**
2321
2881
  * Fetch a user's financial summary.
@@ -2578,6 +3138,69 @@ declare function useUserBalances(args: UseUserBalancesArgs): ReadResult<UserBala
2578
3138
  * ```
2579
3139
  */
2580
3140
  declare function useUserBalances(args: Pausable<UseUserBalancesArgs>): PausableReadResult<UserBalance[]>;
3141
+ type UseUserRiskPremiumBreakdownArgs = UserRiskPremiumBreakdownRequest;
3142
+ /**
3143
+ * Fetch the risk premium breakdown for a user position or spoke.
3144
+ *
3145
+ * This signature supports React Suspense:
3146
+ *
3147
+ * ```tsx
3148
+ * const { data } = useUserRiskPremiumBreakdown({
3149
+ * query: {
3150
+ * userPositionId: userPositionId('SGVsbG8h'),
3151
+ * },
3152
+ * user: evmAddress('0x742d35cc…'),
3153
+ * suspense: true,
3154
+ * });
3155
+ * ```
3156
+ */
3157
+ declare function useUserRiskPremiumBreakdown(args: UseUserRiskPremiumBreakdownArgs & Suspendable): SuspenseResult<UserRiskPremiumBreakdownItem[]>;
3158
+ /**
3159
+ * Fetch the risk premium breakdown for a user position or spoke.
3160
+ *
3161
+ * Pausable suspense mode.
3162
+ *
3163
+ * ```tsx
3164
+ * const { data } = useUserRiskPremiumBreakdown({
3165
+ * query: {
3166
+ * userPositionId: userPositionId('SGVsbG8h'),
3167
+ * },
3168
+ * user: evmAddress('0x742d35cc…'),
3169
+ * suspense: true,
3170
+ * pause: true,
3171
+ * });
3172
+ * ```
3173
+ */
3174
+ declare function useUserRiskPremiumBreakdown(args: Pausable<UseUserRiskPremiumBreakdownArgs> & Suspendable): PausableSuspenseResult<UserRiskPremiumBreakdownItem[]>;
3175
+ /**
3176
+ * Fetch the risk premium breakdown for a user position or spoke.
3177
+ *
3178
+ * ```tsx
3179
+ * const { data, error, loading } = useUserRiskPremiumBreakdown({
3180
+ * query: {
3181
+ * userPositionId: userPositionId('SGVsbG8h'),
3182
+ * },
3183
+ * user: evmAddress('0x742d35cc…'),
3184
+ * });
3185
+ * ```
3186
+ */
3187
+ declare function useUserRiskPremiumBreakdown(args: UseUserRiskPremiumBreakdownArgs): ReadResult<UserRiskPremiumBreakdownItem[]>;
3188
+ /**
3189
+ * Fetch the risk premium breakdown for a user position or spoke.
3190
+ *
3191
+ * Pausable loading state mode.
3192
+ *
3193
+ * ```tsx
3194
+ * const { data, error, loading, paused } = useUserRiskPremiumBreakdown({
3195
+ * query: {
3196
+ * userPositionId: userPositionId('SGVsbG8h'),
3197
+ * },
3198
+ * user: evmAddress('0x742d35cc…'),
3199
+ * pause: true,
3200
+ * });
3201
+ * ```
3202
+ */
3203
+ declare function useUserRiskPremiumBreakdown(args: Pausable<UseUserRiskPremiumBreakdownArgs>): PausableReadResult<UserRiskPremiumBreakdownItem[]>;
2581
3204
  /**
2582
3205
  * Low-level hook to execute a {@link userBalances} action directly.
2583
3206
  *
@@ -2667,4 +3290,4 @@ declare function useUserSummaryHistory(args: UseUserSummaryHistoryArgs): ReadRes
2667
3290
  */
2668
3291
  declare function useUserSummaryHistory(args: Pausable<UseUserSummaryHistoryArgs>): PausableReadResult<UserSummaryHistoryItem[]>;
2669
3292
 
2670
- export { AaveProvider, type AaveProviderProps, type CancelSwapError, type CancelSwapHandler, CannotCancelSwapError, SendTransactionError, type SwapHandler, type SwapHandlerOptions, type SwapIntent, type UseActivitiesArgs, type UseAssetArgs, type UseAssetBorrowHistoryArgs, type UseAssetPriceHistoryArgs, type UseAssetSupplyHistoryArgs, UseAsyncTask, type UseBorrowApyHistoryArgs, type UseHubArgs, type UseHubAssetsArgs, type UseHubsArgs, type UsePreviewArgs, type UseReserveArgs, type UseReservesArgs, type UseSpokeArgs, type UseSpokePositionManagersArgs, type UseSpokeUserPositionManagersArgs, type UseSpokesArgs, type UseSupplyApyHistoryArgs, type UseSwapQuoteArgs, type UseSwapTokensRequest, type UseSwappableTokensArgs, type UseUserBalancesArgs, type UseUserBorrowsArgs, type UseUserPositionArgs, type UseUserPositionsArgs, type UseUserSummaryArgs, type UseUserSummaryHistoryArgs, type UseUserSuppliesArgs, type UseUserSwapsArgs, useAaveClient, useActivities, useActivitiesAction, useAsset, useAssetBorrowHistory, useAssetPriceHistory, useAssetSupplyHistory, useBorrow, useBorrowApyHistory, useCancelSwap, useHub, useHubAssets, useHubs, useHubsAction, useLiquidatePosition, usePermitTypedDataAction, usePreview, usePreviewAction, useRenounceSpokeUserPositionManager, useRepay, useReserve, useReserveAction, useReserves, useReservesAction, useSetSpokeUserPositionManager, useSetUserSupplyAsCollateral, useSpoke, useSpokePositionManagers, useSpokeUserPositionManagers, useSpokes, useSupply, useSupplyApyHistory, useSwapQuote, useSwapQuoteAction, useSwapTokens, useSwappableTokens, useUpdateUserDynamicConfig, useUpdateUserRiskPremium, useUserBalances, useUserBalancesAction, useUserBorrows, useUserBorrowsAction, useUserPosition, useUserPositions, useUserPositionsAction, useUserSummary, useUserSummaryHistory, useUserSupplies, useUserSuppliesAction, useUserSwaps, useWithdraw };
3293
+ export { AaveProvider, type AaveProviderProps, type CancelSwapError, type CancelSwapHandler, CannotCancelSwapError, PendingTransactionError, type PositionSwapHandler, type PositionSwapPlan, type PositionSwapValue, SendTransactionError, type SwapHandlerOptions, type SwapSignerError, type TokenSwapHandler, type TokenSwapPlan, type UseActivitiesArgs, type UseAssetArgs, type UseAssetBorrowHistoryArgs, type UseAssetPriceHistoryArgs, type UseAssetSupplyHistoryArgs, UseAsyncTask, type UseBorrowApyHistoryArgs, type UseBorrowSwapQuoteArgs, type UseBorrowSwapRequest, type UseHubArgs, type UseHubAssetsArgs, type UseHubSummaryHistoryArgs, type UseHubsArgs, type UsePreviewArgs, type UseProtocolHistoryArgs, type UseRepayWithSupplyQuoteArgs, type UseRepayWithSupplyRequest, type UseReserveArgs, type UseReservesArgs, type UseSpokeArgs, type UseSpokePositionManagersArgs, type UseSpokeUserPositionManagersArgs, type UseSpokesArgs, type UseSupplyApyHistoryArgs, type UseSupplySwapQuoteArgs, type UseSupplySwapRequest, type UseSwapSignerRequest, type UseSwapSignerResult, type UseSwapStatusArgs, type UseSwappableTokensArgs, type UseTokenSwapQuoteArgs, type UseTokenSwapRequest, type UseUserBalancesArgs, type UseUserBorrowsArgs, type UseUserPositionArgs, type UseUserPositionsArgs, type UseUserRiskPremiumBreakdownArgs, type UseUserSummaryArgs, type UseUserSummaryHistoryArgs, type UseUserSuppliesArgs, type UseUserSwapsArgs, type UseWithdrawSwapQuoteArgs, type UseWithdrawSwapRequest, useAaveClient, useActivities, useActivitiesAction, useAsset, useAssetBorrowHistory, useAssetPriceHistory, useAssetSupplyHistory, useBorrow, useBorrowApyHistory, useBorrowSwap, useBorrowSwapQuote, useBorrowSwapQuoteAction, useCancelSwap, useHub, useHubAssets, useHubSummaryHistory, useHubs, useHubsAction, useLiquidatePosition, usePreview, usePreviewAction, useProtocolHistory, useRenounceSpokeUserPositionManager, useRepay, useRepayWithSupply, useRepayWithSupplyQuote, useRepayWithSupplyQuoteAction, useReserve, useReserveAction, useReserves, useReservesAction, useSetSpokeUserPositionManager, useSetUserSuppliesAsCollateral, useSpoke, useSpokePositionManagers, useSpokeUserPositionManagers, useSpokes, useSupply, useSupplyApyHistory, useSupplySwap, useSupplySwapQuote, useSupplySwapQuoteAction, useSwapStatus, useSwappableTokens, useTokenSwap, useTokenSwapQuote, useTokenSwapQuoteAction, useUpdateUserPositionConditions, useUserBalances, useUserBalancesAction, useUserBorrows, useUserBorrowsAction, useUserPosition, useUserPositions, useUserPositionsAction, useUserRiskPremiumBreakdown, useUserSummary, useUserSummaryHistory, useUserSupplies, useUserSuppliesAction, useUserSwaps, useWithdraw, useWithdrawSwap, useWithdrawSwapQuote, useWithdrawSwapQuoteAction };