@getpara/react-sdk 2.0.0-alpha.3 → 2.0.0-alpha.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 (241) hide show
  1. package/dist/cli/cli.mjs +23 -13
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.js +6 -6499
  4. package/dist/modal/ParaModal.js +301 -0
  5. package/dist/modal/components/Account/Account.js +148 -0
  6. package/dist/modal/components/Account/AccountProfile.d.ts +1 -0
  7. package/dist/modal/components/Account/AccountProfile.js +168 -0
  8. package/dist/modal/components/Account/AccountProfileLink.d.ts +1 -0
  9. package/dist/modal/components/Account/AccountProfileLink.js +206 -0
  10. package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +1 -0
  11. package/dist/modal/components/Account/AccountProfileLinkOptions.js +111 -0
  12. package/dist/modal/components/Account/AccountProfileUnlink.d.ts +1 -0
  13. package/dist/modal/components/Account/AccountProfileUnlink.js +47 -0
  14. package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -2
  15. package/dist/modal/components/AddFunds/AddFunds.js +69 -0
  16. package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +1 -0
  17. package/dist/modal/components/AddFunds/AddFundsAsset.js +125 -0
  18. package/dist/modal/components/AddFunds/AddFundsAwaiting.js +78 -0
  19. package/dist/modal/components/AddFunds/AddFundsContext.d.ts +31 -0
  20. package/dist/modal/components/AddFunds/AddFundsContext.js +160 -0
  21. package/dist/modal/components/AddFunds/AddFundsDone.js +49 -0
  22. package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +1 -0
  23. package/dist/modal/components/AddFunds/AddFundsProvider.js +109 -0
  24. package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +1 -0
  25. package/dist/modal/components/AddFunds/AddFundsReceive.js +83 -0
  26. package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +1 -0
  27. package/dist/modal/components/AddFunds/AddFundsSettings.js +237 -0
  28. package/dist/{MoonPayEmbed-Q2HP2BFI.js → modal/components/AddFunds/MoonPayEmbed.js} +1 -3
  29. package/dist/modal/components/AddFunds/common.d.ts +19 -0
  30. package/dist/modal/components/AddFunds/common.js +24 -0
  31. package/dist/modal/components/AddFunds/index.js +4 -0
  32. package/dist/modal/components/AuthInput/AuthInput.d.ts +17 -3
  33. package/dist/modal/components/AuthInput/AuthInput.js +277 -0
  34. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +33 -0
  35. package/dist/modal/components/AuthInput/phoneMasks.js +253 -0
  36. package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +4 -3
  37. package/dist/modal/components/AuthMainStep/AuthMainStep.js +50 -0
  38. package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +4 -3
  39. package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +164 -0
  40. package/dist/modal/components/AuthOptions/AuthOptions.d.ts +4 -3
  41. package/dist/modal/components/AuthOptions/AuthOptions.js +85 -0
  42. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +18 -0
  43. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +10 -0
  44. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +18 -0
  45. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +5 -1
  46. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +49 -0
  47. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +62 -0
  48. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +48 -0
  49. package/dist/modal/components/Body/AnimatedHeightWrapper.js +29 -0
  50. package/dist/modal/components/Body/Body.d.ts +4 -3
  51. package/dist/modal/components/Body/Body.js +350 -0
  52. package/dist/modal/components/ChainSwitch/ChainSwitch.js +95 -0
  53. package/dist/modal/components/ChainSwitch/config.js +17 -0
  54. package/dist/modal/components/Controls/Controls.js +78 -0
  55. package/dist/modal/components/Controls/Selects.js +173 -0
  56. package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts +1 -0
  57. package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js +75 -0
  58. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +7 -0
  59. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +175 -0
  60. package/dist/modal/components/ExternalWalletStep/config.js +17 -0
  61. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +39 -0
  62. package/dist/modal/components/ExternalWallets/ExternalWallets.js +184 -0
  63. package/dist/modal/components/Footer/Footer.js +95 -0
  64. package/dist/modal/components/Header/Header.js +43 -0
  65. package/dist/modal/components/Header/hooks/useStepTitle.js +61 -0
  66. package/dist/modal/components/Hero/Hero.js +116 -0
  67. package/dist/modal/components/IFrameStep/IFrameStep.js +59 -0
  68. package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +4 -0
  69. package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +44 -0
  70. package/dist/modal/components/ModalContent/ModalContent.js +88 -0
  71. package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +1 -0
  72. package/dist/modal/components/OAuth/FarcasterOAuthStep.js +31 -0
  73. package/dist/modal/components/OAuth/OAuth.d.ts +2 -2
  74. package/dist/modal/components/OAuth/OAuth.js +79 -0
  75. package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +7 -0
  76. package/dist/modal/components/OAuth/TelegramOAuthStep.js +74 -0
  77. package/dist/modal/components/OnRampComponents/AddingFunds.js +23 -0
  78. package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +77 -0
  79. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +107 -0
  80. package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +132 -0
  81. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +27 -0
  82. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +12 -1
  83. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +160 -0
  84. package/dist/modal/components/Waiting/Waiting.js +17 -0
  85. package/dist/modal/components/WalletCard/PartnerIcon.js +34 -0
  86. package/dist/modal/components/WalletCard/WalletCard.d.ts +3 -3
  87. package/dist/modal/components/WalletCard/WalletCard.js +128 -0
  88. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +83 -0
  89. package/dist/modal/components/common.d.ts +49 -13
  90. package/dist/modal/components/common.js +261 -0
  91. package/dist/modal/components/index.js +2 -0
  92. package/dist/modal/constants/constants.d.ts +10 -2
  93. package/dist/modal/constants/constants.js +142 -0
  94. package/dist/modal/constants/defaults.js +10 -0
  95. package/dist/modal/constants/oAuthLogos.d.ts +15 -6
  96. package/dist/modal/constants/oAuthLogos.js +158 -0
  97. package/dist/modal/constants/walletTypeConfig.d.ts +6 -0
  98. package/dist/modal/constants/walletTypeConfig.js +13 -0
  99. package/dist/modal/hooks/useGoBack.js +43 -0
  100. package/dist/modal/hooks/useTelegramLogin.d.ts +12 -0
  101. package/dist/modal/hooks/useTelegramLogin.js +65 -0
  102. package/dist/modal/index.d.ts +1 -2
  103. package/dist/modal/index.js +29 -0
  104. package/dist/modal/stores/index.js +2 -0
  105. package/dist/modal/stores/modal/actions.js +135 -0
  106. package/dist/modal/stores/modal/useModalStore.d.ts +15 -6
  107. package/dist/modal/stores/modal/useModalStore.js +73 -0
  108. package/dist/modal/types/commonTypes.d.ts +0 -47
  109. package/dist/modal/types/commonTypes.js +1 -0
  110. package/dist/modal/types/modalProps.d.ts +15 -2
  111. package/dist/modal/types/modalProps.js +12 -0
  112. package/dist/modal/utils/authInputHelpers.d.ts +5 -0
  113. package/dist/modal/utils/authInputHelpers.js +41 -0
  114. package/dist/modal/utils/authLayoutHelpers.js +8 -0
  115. package/dist/modal/utils/countryCodes.js +45 -0
  116. package/dist/modal/utils/getMailtoLink.js +10 -0
  117. package/dist/modal/utils/getTileButtonFlex.js +20 -0
  118. package/dist/modal/utils/getWalletDisplayName.d.ts +5 -0
  119. package/dist/modal/utils/getWalletDisplayName.js +22 -0
  120. package/dist/modal/utils/isPasskeySupported.js +15 -0
  121. package/dist/modal/utils/openPopup.js +60 -0
  122. package/dist/modal/utils/routeMobileExternalWallet.js +31 -0
  123. package/dist/modal/utils/steps.d.ts +21 -2
  124. package/dist/modal/utils/steps.js +273 -0
  125. package/dist/modal/utils/stringFormatters.d.ts +1 -0
  126. package/dist/modal/utils/stringFormatters.js +19 -0
  127. package/dist/modal/utils/validateOnRampConfig.js +32 -0
  128. package/dist/package.json +6 -0
  129. package/dist/provider/ParaProvider.js +117 -0
  130. package/dist/provider/actions/getEmbeddedAccount.d.ts +26 -0
  131. package/dist/provider/actions/getEmbeddedAccount.js +52 -0
  132. package/dist/provider/actions/getWallet.d.ts +3 -3
  133. package/dist/provider/actions/getWallet.js +18 -0
  134. package/dist/provider/actions/index.d.ts +22 -0
  135. package/dist/provider/actions/index.js +79 -0
  136. package/dist/provider/actions/utils.d.ts +4 -3
  137. package/dist/provider/actions/utils.js +34 -0
  138. package/dist/provider/components/CosmosWalletWrapper.js +43 -0
  139. package/dist/provider/components/EvmWalletWrapper.js +43 -0
  140. package/dist/provider/components/ExternalWalletWrapper.js +140 -0
  141. package/dist/provider/components/SolanaWalletWrapper.js +44 -0
  142. package/dist/provider/external/getParaCosmosConnector.js +19 -0
  143. package/dist/provider/external/getParaCosmosLib.d.ts +4 -0
  144. package/dist/provider/external/getParaCosmosLib.js +16 -0
  145. package/dist/provider/external/getParaEvmConnector.js +19 -0
  146. package/dist/provider/external/getParaEvmLib.d.ts +4 -0
  147. package/dist/provider/external/getParaEvmLib.js +16 -0
  148. package/dist/provider/external/getParaSolanaConnector.js +19 -0
  149. package/dist/provider/external/getParaSolanaLib.d.ts +4 -0
  150. package/dist/provider/external/getParaSolanaLib.js +16 -0
  151. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +1 -11
  152. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +8 -0
  153. package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +1 -2
  154. package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +8 -0
  155. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +1 -7
  156. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +8 -0
  157. package/dist/provider/hooks/index.js +4 -0
  158. package/dist/provider/hooks/mutations/core.d.ts +27 -0
  159. package/dist/provider/hooks/mutations/core.js +66 -0
  160. package/dist/provider/hooks/mutations/index.d.ts +3 -25
  161. package/dist/provider/hooks/mutations/index.js +9 -0
  162. package/dist/provider/hooks/mutations/useLinkAccount.d.ts +9 -0
  163. package/dist/provider/hooks/mutations/useLinkAccount.js +18 -0
  164. package/dist/provider/hooks/mutations/utils.d.ts +11 -3
  165. package/dist/provider/hooks/mutations/utils.js +90 -0
  166. package/dist/provider/hooks/queries/core.d.ts +4 -0
  167. package/dist/provider/hooks/queries/core.js +16 -0
  168. package/dist/provider/hooks/queries/index.d.ts +2 -0
  169. package/dist/provider/hooks/queries/index.js +11 -0
  170. package/dist/provider/hooks/queries/useAccount.d.ts +91 -2
  171. package/dist/provider/hooks/queries/useAccount.js +138 -0
  172. package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +5 -0
  173. package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +24 -0
  174. package/dist/provider/hooks/queries/useWallet.d.ts +1 -1
  175. package/dist/provider/hooks/queries/useWallet.js +26 -0
  176. package/dist/provider/hooks/queries/useWalletBalance.d.ts +6 -0
  177. package/dist/provider/hooks/queries/useWalletBalance.js +55 -0
  178. package/dist/provider/hooks/queries/utils.d.ts +7 -0
  179. package/dist/provider/hooks/queries/utils.js +25 -0
  180. package/dist/provider/hooks/utils/index.js +10 -0
  181. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +74 -0
  182. package/dist/provider/hooks/utils/useClient.d.ts +1 -1
  183. package/dist/provider/hooks/utils/useClient.js +10 -0
  184. package/dist/provider/hooks/utils/useEventListeners.d.ts +1 -1
  185. package/dist/provider/hooks/utils/useEventListeners.js +157 -0
  186. package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +4 -0
  187. package/dist/provider/hooks/utils/useFormattedBiometricHints.js +27 -0
  188. package/dist/provider/hooks/utils/useInternalClient.js +10 -0
  189. package/dist/provider/hooks/utils/useModal.d.ts +4 -1
  190. package/dist/provider/hooks/utils/useModal.js +27 -0
  191. package/dist/provider/hooks/utils/useWalletState.d.ts +3 -3
  192. package/dist/provider/hooks/utils/useWalletState.js +48 -0
  193. package/dist/provider/index.d.ts +2 -0
  194. package/dist/provider/index.js +11 -0
  195. package/dist/provider/providers/AccountLinkProvider.d.ts +47 -0
  196. package/dist/provider/providers/AccountLinkProvider.js +452 -0
  197. package/dist/provider/providers/AuthProvider.d.ts +12 -6
  198. package/dist/provider/providers/AuthProvider.js +523 -0
  199. package/dist/provider/providers/CosmosExternalWalletProvider.js +66 -0
  200. package/dist/provider/providers/EvmExternalWalletProvider.js +74 -0
  201. package/dist/provider/providers/ExternalWalletProvider.d.ts +21 -35
  202. package/dist/provider/providers/ExternalWalletProvider.js +596 -0
  203. package/dist/provider/providers/SolanaExternalWalletProvider.js +66 -0
  204. package/dist/provider/stores/getters.d.ts +1 -1
  205. package/dist/provider/stores/getters.js +13 -0
  206. package/dist/provider/stores/setters.js +7 -0
  207. package/dist/provider/stores/slices/analytics.d.ts +3 -0
  208. package/dist/provider/stores/slices/analytics.js +9 -0
  209. package/dist/provider/stores/slices/client.js +9 -0
  210. package/dist/provider/stores/slices/config.js +9 -0
  211. package/dist/provider/stores/slices/externalWallets.js +46 -0
  212. package/dist/provider/stores/slices/index.d.ts +1 -0
  213. package/dist/provider/stores/slices/index.js +6 -0
  214. package/dist/provider/stores/slices/modal.js +18 -0
  215. package/dist/provider/stores/slices/wallet.js +13 -0
  216. package/dist/provider/stores/types.d.ts +20 -5
  217. package/dist/provider/stores/types.js +1 -0
  218. package/dist/provider/stores/useStore.js +34 -0
  219. package/dist/provider/types/externalWalletProviders.d.ts +2 -2
  220. package/dist/provider/types/externalWalletProviders.js +1 -0
  221. package/dist/provider/types/provider.d.ts +25 -5
  222. package/dist/provider/types/provider.js +1 -0
  223. package/dist/provider/types/query.js +1 -0
  224. package/dist/provider/types/utils.d.ts +28 -5
  225. package/dist/provider/types/utils.js +1 -0
  226. package/dist/provider/utils/constants.d.ts +5 -0
  227. package/dist/provider/utils/constants.js +10 -0
  228. package/dist/provider/utils/paraConfigTypeGuards.js +13 -0
  229. package/dist/provider/utils/renameMutations.d.ts +2 -2
  230. package/dist/provider/utils/renameMutations.js +18 -0
  231. package/package.json +40 -39
  232. package/dist/MoonPayEmbed-Q2HP2BFI.js.br +0 -0
  233. package/dist/MoonPayEmbed-Q2HP2BFI.js.gz +0 -0
  234. package/dist/chunk-MMUBH76A.js.br +0 -0
  235. package/dist/chunk-MMUBH76A.js.gz +0 -0
  236. package/dist/index.js.br +0 -0
  237. package/dist/index.js.gz +0 -0
  238. package/dist/modal/components/StripeComponents/StripeComponents.d.ts +0 -16
  239. package/dist/modal/types/externalWallets.d.ts +0 -31
  240. package/dist/provider/actions/getAccount.d.ts +0 -19
  241. /package/dist/modal/{components/AuthInput → utils}/countryCodes.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ import { CosmosExternalWalletContext } from "./stubs/CosmosExternalWalletContextStub.js";
6
+ import { getParaCosmosLib } from "./getParaCosmosLib.js";
7
+ const getParaCosmosConnector = () => __async(void 0, null, function* () {
8
+ let Provider = void 0, context = CosmosExternalWalletContext, wallets = [];
9
+ const { lib } = yield getParaCosmosLib();
10
+ if (lib) {
11
+ Provider = lib.ParaCosmosProvider;
12
+ context = lib.CosmosExternalWalletContext;
13
+ wallets = lib.allWallets;
14
+ }
15
+ return { Provider, context, wallets };
16
+ });
17
+ export {
18
+ getParaCosmosConnector
19
+ };
@@ -0,0 +1,4 @@
1
+ import paraCosmosLib from '@getpara/cosmos-wallet-connectors';
2
+ export declare const getParaCosmosLib: () => Promise<{
3
+ lib: typeof paraCosmosLib | undefined;
4
+ }>;
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ const getParaCosmosLib = () => __async(void 0, null, function* () {
6
+ let lib;
7
+ try {
8
+ lib = yield import("@getpara/cosmos-wallet-connectors");
9
+ } catch (e) {
10
+ lib = void 0;
11
+ }
12
+ return { lib };
13
+ });
14
+ export {
15
+ getParaCosmosLib
16
+ };
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ import { EvmExternalWalletContext } from "./stubs/EvmExternalWalletContextStub.js";
6
+ import { getParaEvmLib } from "./getParaEvmLib.js";
7
+ const getParaEvmConnector = () => __async(void 0, null, function* () {
8
+ let Provider = void 0, context = EvmExternalWalletContext, wallets = [];
9
+ const { lib } = yield getParaEvmLib();
10
+ if (lib) {
11
+ Provider = lib.ParaEvmProvider;
12
+ context = lib.EvmExternalWalletContext;
13
+ wallets = lib.allWallets;
14
+ }
15
+ return { Provider, context, wallets };
16
+ });
17
+ export {
18
+ getParaEvmConnector
19
+ };
@@ -0,0 +1,4 @@
1
+ import paraEvmLib from '@getpara/evm-wallet-connectors';
2
+ export declare const getParaEvmLib: () => Promise<{
3
+ lib: typeof paraEvmLib | undefined;
4
+ }>;
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ const getParaEvmLib = () => __async(void 0, null, function* () {
6
+ let lib;
7
+ try {
8
+ lib = yield import("@getpara/evm-wallet-connectors");
9
+ } catch (e) {
10
+ lib = void 0;
11
+ }
12
+ return { lib };
13
+ });
14
+ export {
15
+ getParaEvmLib
16
+ };
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ import { SolanaExternalWalletContext } from "./stubs/SolanaExternalWalletContextStub.js";
6
+ import { getParaSolanaLib } from "./getParaSolanaLib.js";
7
+ const getParaSolanaConnector = () => __async(void 0, null, function* () {
8
+ let Provider = void 0, context = SolanaExternalWalletContext, wallets = [];
9
+ const { lib } = yield getParaSolanaLib();
10
+ if (lib) {
11
+ Provider = lib.ParaSolanaProvider;
12
+ context = lib.SolanaExternalWalletContext;
13
+ wallets = lib.allWallets;
14
+ }
15
+ return { Provider, context, wallets };
16
+ });
17
+ export {
18
+ getParaSolanaConnector
19
+ };
@@ -0,0 +1,4 @@
1
+ import paraSolanaLib from '@getpara/solana-wallet-connectors';
2
+ export declare const getParaSolanaLib: () => Promise<{
3
+ lib: typeof paraSolanaLib | undefined;
4
+ }>;
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ const getParaSolanaLib = () => __async(void 0, null, function* () {
6
+ let lib;
7
+ try {
8
+ lib = yield import("@getpara/solana-wallet-connectors");
9
+ } catch (e) {
10
+ lib = void 0;
11
+ }
12
+ return { lib };
13
+ });
14
+ export {
15
+ getParaSolanaLib
16
+ };
@@ -1,12 +1,2 @@
1
- import { CosmosExternalWalletContextType } from '@getpara/cosmos-wallet-connectors';
2
- export declare const defaultCosmosExternalWallet: {
3
- wallets: never[];
4
- chains: never[];
5
- chainId: undefined;
6
- disconnect: () => Promise<void>;
7
- switchChain: () => Promise<{}>;
8
- connectParaEmbedded: () => Promise<{}>;
9
- signMessage: () => Promise<{}>;
10
- signVerificationMessage: () => Promise<{}>;
11
- };
1
+ import { type CosmosExternalWalletContextType } from '@getpara/cosmos-wallet-connectors';
12
2
  export declare const CosmosExternalWalletContext: import("react").Context<CosmosExternalWalletContextType>;
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { defaultCosmosExternalWallet } from "@getpara/react-common";
4
+ import { createContext } from "react";
5
+ const CosmosExternalWalletContext = createContext(defaultCosmosExternalWallet);
6
+ export {
7
+ CosmosExternalWalletContext
8
+ };
@@ -1,3 +1,2 @@
1
- import { EvmExternalWalletContextType } from '@getpara/evm-wallet-connectors';
2
- export declare const defaultEvmExternalWallet: EvmExternalWalletContextType;
1
+ import { type EvmExternalWalletContextType } from '@getpara/evm-wallet-connectors';
3
2
  export declare const EvmExternalWalletContext: import("react").Context<EvmExternalWalletContextType>;
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { createContext } from "react";
4
+ import { defaultEvmExternalWallet } from "@getpara/react-common";
5
+ const EvmExternalWalletContext = createContext(defaultEvmExternalWallet);
6
+ export {
7
+ EvmExternalWalletContext
8
+ };
@@ -1,8 +1,2 @@
1
- import { SolanaExternalWalletContextType } from '@getpara/solana-wallet-connectors';
2
- export declare const defaultSolanaExternalWallet: {
3
- wallets: never[];
4
- disconnect: () => Promise<void>;
5
- signMessage: () => Promise<{}>;
6
- signVerificationMessage: () => Promise<{}>;
7
- };
1
+ import { type SolanaExternalWalletContextType } from '@getpara/solana-wallet-connectors';
8
2
  export declare const SolanaExternalWalletContext: import("react").Context<SolanaExternalWalletContextType>;
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { createContext } from "react";
4
+ import { defaultSolanaExternalWallet } from "@getpara/react-common";
5
+ const SolanaExternalWalletContext = createContext(defaultSolanaExternalWallet);
6
+ export {
7
+ SolanaExternalWalletContext
8
+ };
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ export * from "./utils/index.js";
3
+ export * from "./queries/index.js";
4
+ export * from "./mutations/index.js";
@@ -0,0 +1,27 @@
1
+ export declare const useSignUpOrLogIn: () => import("../../types/utils.js").CoreMethodMutationHook<"signUpOrLogIn">;
2
+ export declare const useVerifyNewAccount: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyNewAccount">;
3
+ export declare const useWaitForLogin: () => import("../../types/utils.js").CoreMethodMutationHook<"waitForLogin">;
4
+ export declare const useWaitForSignup: () => import("../../types/utils.js").CoreMethodMutationHook<"waitForSignup">;
5
+ export declare const useWaitForWalletCreation: () => import("../../types/utils.js").CoreMethodMutationHook<"waitForWalletCreation">;
6
+ export declare const useVerifyOAuth: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyOAuth">;
7
+ export declare const useVerifyFarcaster: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyFarcaster">;
8
+ export declare const useVerifyTelegram: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyTelegram">;
9
+ export declare const useLoginExternalWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"loginExternalWallet">;
10
+ export declare const useVerifyExternalWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"verifyExternalWallet">;
11
+ export declare const useSetup2fa: () => import("../../types/utils.js").CoreMethodMutationHook<"setup2fa">;
12
+ export declare const useEnable2fa: () => import("../../types/utils.js").CoreMethodMutationHook<"enable2fa">;
13
+ export declare const useVerify2fa: () => import("../../types/utils.js").CoreMethodMutationHook<"verify2fa">;
14
+ export declare const useKeepSessionAlive: () => import("../../types/utils.js").CoreMethodMutationHook<"keepSessionAlive">;
15
+ export declare const useLogout: () => import("../../types/utils.js").CoreMethodMutationHook<"logout">;
16
+ export declare const useResendVerificationCode: () => import("../../types/utils.js").CoreMethodMutationHook<"resendVerificationCode">;
17
+ export declare const useCreateWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"createWallet">;
18
+ export declare const useCreateWalletPerType: () => import("../../types/utils.js").CoreMethodMutationHook<"createWalletPerType">;
19
+ export declare const useCreatePregenWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"createPregenWallet">;
20
+ export declare const useCreatePregenWalletPerType: () => import("../../types/utils.js").CoreMethodMutationHook<"createPregenWalletPerType">;
21
+ export declare const useClaimPregenWallets: () => import("../../types/utils.js").CoreMethodMutationHook<"claimPregenWallets">;
22
+ export declare const useHasPregenWallet: () => import("../../types/utils.js").CoreMethodMutationHook<"hasPregenWallet">;
23
+ export declare const useUpdatePregenWalletIdentifier: () => import("../../types/utils.js").CoreMethodMutationHook<"updatePregenWalletIdentifier">;
24
+ export declare const useCreateGuestWallets: () => import("../../types/utils.js").CoreMethodMutationHook<"createGuestWallets">;
25
+ export declare const useSignMessage: () => import("../../types/utils.js").CoreMethodMutationHook<"signMessage">;
26
+ export declare const useSignTransaction: () => import("../../types/utils.js").CoreMethodMutationHook<"signTransaction">;
27
+ export declare const useIssueJwt: () => import("../../types/utils.js").CoreMethodMutationHook<"issueJwt">;
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import * as actions from "../../actions/index.js";
4
+ import { generateCoreMutation } from "./utils.js";
5
+ const useSignUpOrLogIn = generateCoreMutation("signUpOrLogIn", actions.signUpOrLogIn);
6
+ const useVerifyNewAccount = generateCoreMutation("verifyNewAccount", actions.verifyNewAccount);
7
+ const useWaitForLogin = generateCoreMutation("waitForLogin", actions.waitForLogin);
8
+ const useWaitForSignup = generateCoreMutation("waitForSignup", actions.waitForSignup);
9
+ const useWaitForWalletCreation = generateCoreMutation("waitForWalletCreation", actions.waitForWalletCreation);
10
+ const useVerifyOAuth = generateCoreMutation("verifyOAuth", actions.verifyOAuth);
11
+ const useVerifyFarcaster = generateCoreMutation("verifyFarcaster", actions.verifyFarcaster);
12
+ const useVerifyTelegram = generateCoreMutation("verifyTelegram", actions.verifyTelegram);
13
+ const useLoginExternalWallet = generateCoreMutation("loginExternalWallet", actions.loginExternalWallet);
14
+ const useVerifyExternalWallet = generateCoreMutation("verifyExternalWallet", actions.verifyExternalWallet);
15
+ const useSetup2fa = generateCoreMutation("setup2fa", actions.setup2fa);
16
+ const useEnable2fa = generateCoreMutation("enable2fa", actions.enable2fa);
17
+ const useVerify2fa = generateCoreMutation("verify2fa", actions.verify2fa);
18
+ const useKeepSessionAlive = generateCoreMutation("keepSessionAlive", actions.keepSessionAlive);
19
+ const useLogout = generateCoreMutation("logout", actions.logout);
20
+ const useResendVerificationCode = generateCoreMutation("resendVerificationCode", actions.resendVerificationCode);
21
+ const useCreateWallet = generateCoreMutation("createWallet", actions.createWallet);
22
+ const useCreateWalletPerType = generateCoreMutation("createWalletPerType", actions.createWalletPerType);
23
+ const useCreatePregenWallet = generateCoreMutation("createPregenWallet", actions.createPregenWallet);
24
+ const useCreatePregenWalletPerType = generateCoreMutation(
25
+ "createPregenWalletPerType",
26
+ actions.createPregenWalletPerType
27
+ );
28
+ const useClaimPregenWallets = generateCoreMutation("claimPregenWallets", actions.claimPregenWallets);
29
+ const useHasPregenWallet = generateCoreMutation("hasPregenWallet", actions.hasPregenWallet);
30
+ const useUpdatePregenWalletIdentifier = generateCoreMutation(
31
+ "updatePregenWalletIdentifier",
32
+ actions.updatePregenWalletIdentifier
33
+ );
34
+ const useCreateGuestWallets = generateCoreMutation("createGuestWallets", actions.createGuestWallets);
35
+ const useSignMessage = generateCoreMutation("signMessage", actions.signMessage);
36
+ const useSignTransaction = generateCoreMutation("signTransaction", actions.signTransaction);
37
+ const useIssueJwt = generateCoreMutation("issueJwt", actions.issueJwt);
38
+ export {
39
+ useClaimPregenWallets,
40
+ useCreateGuestWallets,
41
+ useCreatePregenWallet,
42
+ useCreatePregenWalletPerType,
43
+ useCreateWallet,
44
+ useCreateWalletPerType,
45
+ useEnable2fa,
46
+ useHasPregenWallet,
47
+ useIssueJwt,
48
+ useKeepSessionAlive,
49
+ useLoginExternalWallet,
50
+ useLogout,
51
+ useResendVerificationCode,
52
+ useSetup2fa,
53
+ useSignMessage,
54
+ useSignTransaction,
55
+ useSignUpOrLogIn,
56
+ useUpdatePregenWalletIdentifier,
57
+ useVerify2fa,
58
+ useVerifyExternalWallet,
59
+ useVerifyFarcaster,
60
+ useVerifyNewAccount,
61
+ useVerifyOAuth,
62
+ useVerifyTelegram,
63
+ useWaitForLogin,
64
+ useWaitForSignup,
65
+ useWaitForWalletCreation
66
+ };
@@ -1,25 +1,3 @@
1
- export declare const useSignUpOrLogIn: () => import("../../types/utils.js").CoreMethodHook<"signUpOrLogIn">;
2
- export declare const useVerifyNewAccount: () => import("../../types/utils.js").CoreMethodHook<"verifyNewAccount">;
3
- export declare const useWaitForLogin: () => import("../../types/utils.js").CoreMethodHook<"waitForLogin">;
4
- export declare const useWaitForSignup: () => import("../../types/utils.js").CoreMethodHook<"waitForSignup">;
5
- export declare const useWaitForWalletCreation: () => import("../../types/utils.js").CoreMethodHook<"waitForWalletCreation">;
6
- export declare const useVerifyOAuth: () => import("../../types/utils.js").CoreMethodHook<"verifyOAuth">;
7
- export declare const useVerifyFarcaster: () => import("../../types/utils.js").CoreMethodHook<"verifyFarcaster">;
8
- export declare const useVerifyTelegram: () => import("../../types/utils.js").CoreMethodHook<"verifyTelegram">;
9
- export declare const useLoginExternalWallet: () => import("../../types/utils.js").CoreMethodHook<"loginExternalWallet">;
10
- export declare const useVerifyExternalWallet: () => import("../../types/utils.js").CoreMethodHook<"verifyExternalWallet">;
11
- export declare const useSetup2fa: () => import("../../types/utils.js").CoreMethodHook<"setup2fa">;
12
- export declare const useEnable2fa: () => import("../../types/utils.js").CoreMethodHook<"enable2fa">;
13
- export declare const useVerify2fa: () => import("../../types/utils.js").CoreMethodHook<"verify2fa">;
14
- export declare const useKeepSessionAlive: () => import("../../types/utils.js").CoreMethodHook<"keepSessionAlive">;
15
- export declare const useLogout: () => import("../../types/utils.js").CoreMethodHook<"logout">;
16
- export declare const useResendVerificationCode: () => import("../../types/utils.js").CoreMethodHook<"resendVerificationCode">;
17
- export declare const useCreateWallet: () => import("../../types/utils.js").CoreMethodHook<"createWallet">;
18
- export declare const useCreateWalletPerType: () => import("../../types/utils.js").CoreMethodHook<"createWalletPerType">;
19
- export declare const useCreatePregenWallet: () => import("../../types/utils.js").CoreMethodHook<"createPregenWallet">;
20
- export declare const useCreatePregenWalletPerType: () => import("../../types/utils.js").CoreMethodHook<"createPregenWalletPerType">;
21
- export declare const useClaimPregenWallets: () => import("../../types/utils.js").CoreMethodHook<"claimPregenWallets">;
22
- export declare const useHasPregenWallet: () => import("../../types/utils.js").CoreMethodHook<"hasPregenWallet">;
23
- export declare const useUpdatePregenWalletIdentifier: () => import("../../types/utils.js").CoreMethodHook<"updatePregenWalletIdentifier">;
24
- export declare const useSignMessage: () => import("../../types/utils.js").CoreMethodHook<"signMessage">;
25
- export declare const useSignTransaction: () => import("../../types/utils.js").CoreMethodHook<"signTransaction">;
1
+ export * from './core.js';
2
+ export * from './useLinkAccount.js';
3
+ export declare const useCreateGuestWalletsState: import("../../types/utils.js").CoreMethodMutationStateHook<"createGuestWallets">;
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { generateStateHook } from "./utils.js";
4
+ export * from "./core.js";
5
+ export * from "./useLinkAccount.js";
6
+ const useCreateGuestWalletsState = generateStateHook("createGuestWallets");
7
+ export {
8
+ useCreateGuestWalletsState
9
+ };
@@ -0,0 +1,9 @@
1
+ export declare const useLinkAccount: () => {
2
+ linkAccount: (_: import("../../providers/AccountLinkProvider.js").ModalLinkAccountArgs) => Promise<void>;
3
+ error: string | null;
4
+ status: import("@tanstack/query-core").MutationStatus;
5
+ isPending: boolean;
6
+ isError: boolean;
7
+ isIdle: boolean;
8
+ isSuccess: boolean;
9
+ };
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { useAccountLinking } from "../../providers/AccountLinkProvider.js";
4
+ const useLinkAccount = () => {
5
+ const { linkAccount, linkAccountError, linkAccountStatus } = useAccountLinking();
6
+ return {
7
+ linkAccount,
8
+ error: linkAccountError,
9
+ status: linkAccountStatus,
10
+ isPending: linkAccountStatus === "pending",
11
+ isError: linkAccountStatus === "error",
12
+ isIdle: linkAccountStatus === "idle",
13
+ isSuccess: linkAccountStatus === "success"
14
+ };
15
+ };
16
+ export {
17
+ useLinkAccount
18
+ };
@@ -1,4 +1,12 @@
1
- import { CoreMethodName, CoreMethodParams, CoreMethods } from '@getpara/web-sdk';
2
- import { CoreMethodHook } from '../../types/utils.js';
1
+ import { CoreMethodName, CoreMethodParams, CoreMethods, InternalAction, InternalMethodName, InternalMethodParams, InternalMethods } from '@getpara/web-sdk';
2
+ import { CoreMethodMutationHook, CoreMethodMutationStateHook, InternalMethodMutationHook } from '../../types/utils.js';
3
3
  import { CoreAction } from '../../actions/utils.js';
4
- export declare function generateHook<const method extends CoreMethodName & keyof CoreMethods>(method: method, action: CoreAction<method>, defaultParams?: CoreMethodParams<method>): () => CoreMethodHook<method>;
4
+ export declare function generateCoreMutation<const method extends CoreMethodName & keyof CoreMethods>(method: method, action: CoreAction<method>, { delay, defaultParams, }?: {
5
+ delay?: number;
6
+ defaultParams?: CoreMethodParams<method>;
7
+ }): () => CoreMethodMutationHook<method>;
8
+ export declare function generateInternalMutation<const method extends InternalMethodName & keyof InternalMethods>(method: method, action: InternalAction<method>, { delay, defaultParams, }?: {
9
+ delay?: number;
10
+ defaultParams?: InternalMethodParams<method>;
11
+ }): () => InternalMethodMutationHook<method>;
12
+ export declare function generateStateHook<const method extends CoreMethodName & keyof CoreMethods>(method: method): CoreMethodMutationStateHook<method>;
@@ -0,0 +1,90 @@
1
+ "use client";
2
+ import {
3
+ __async,
4
+ __spreadProps,
5
+ __spreadValues
6
+ } from "../../../chunk-MMUBH76A.js";
7
+ import { renameCoreMutations } from "../../utils/renameMutations.js";
8
+ import { useClient } from "../utils/index.js";
9
+ import { useMutation, useMutationState } from "@tanstack/react-query";
10
+ import { useInternalClient } from "../utils/useInternalClient.js";
11
+ function generateCoreMutation(method, action, {
12
+ delay,
13
+ defaultParams
14
+ } = {}) {
15
+ return () => {
16
+ const para = useClient();
17
+ const mutation = useMutation({
18
+ mutationKey: [method],
19
+ mutationFn: (args) => __async(this, null, function* () {
20
+ if (typeof delay === "number") yield new Promise((resolve) => setTimeout(resolve, delay));
21
+ try {
22
+ const result = yield action(para, args != null ? args : defaultParams);
23
+ return result;
24
+ } catch (error) {
25
+ throw error;
26
+ }
27
+ })
28
+ });
29
+ return renameCoreMutations(mutation, method);
30
+ };
31
+ }
32
+ function generateInternalMutation(method, action, {
33
+ delay,
34
+ defaultParams
35
+ } = {}) {
36
+ return () => {
37
+ const para = useInternalClient();
38
+ const mutation = useMutation({
39
+ mutationKey: [method],
40
+ mutationFn: (args) => __async(this, null, function* () {
41
+ if (typeof delay === "number") yield new Promise((resolve) => setTimeout(resolve, delay));
42
+ try {
43
+ const result = yield action(para, args != null ? args : defaultParams);
44
+ return result;
45
+ } catch (error) {
46
+ throw error;
47
+ }
48
+ })
49
+ });
50
+ return mutation;
51
+ };
52
+ }
53
+ function generateStateHook(method) {
54
+ return () => {
55
+ const frames = useMutationState({
56
+ filters: { mutationKey: [method] },
57
+ select: (mutation) => mutation.state
58
+ });
59
+ const latest = frames[frames.length - 1];
60
+ if (!latest) {
61
+ return {
62
+ data: void 0,
63
+ error: null,
64
+ failureCount: 0,
65
+ isLoading: false,
66
+ isPaused: false,
67
+ isPending: false,
68
+ isError: false,
69
+ isSuccess: false,
70
+ isIdle: true,
71
+ status: "idle",
72
+ variables: void 0,
73
+ context: null,
74
+ failureReason: null,
75
+ submittedAt: 0
76
+ };
77
+ }
78
+ return __spreadProps(__spreadValues({}, latest), {
79
+ isPending: latest.status === "pending",
80
+ isError: latest.status === "error",
81
+ isSuccess: latest.status === "success",
82
+ isIdle: latest.status === "idle"
83
+ });
84
+ };
85
+ }
86
+ export {
87
+ generateCoreMutation,
88
+ generateInternalMutation,
89
+ generateStateHook
90
+ };
@@ -0,0 +1,4 @@
1
+ export declare const useLinkedAccounts: (params?: {
2
+ withMetadata?: boolean;
3
+ } | undefined) => import("../../types/utils.js").CoreMethodQueryHook<"getLinkedAccounts">;
4
+ export declare const useAccountLinkInProgress: (params?: undefined) => import("../../types/utils.js").CoreMethodQueryHook<"accountLinkInProgress">;
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import * as actions from "../../actions/index.js";
4
+ import { generateCoreQueryHook } from "./utils.js";
5
+ const useLinkedAccounts = generateCoreQueryHook("getLinkedAccounts", actions.getLinkedAccounts, {
6
+ defaultParams: { withMetadata: false }
7
+ });
8
+ const useAccountLinkInProgress = generateCoreQueryHook(
9
+ "accountLinkInProgress",
10
+ actions.accountLinkInProgress,
11
+ { isGetter: true }
12
+ );
13
+ export {
14
+ useAccountLinkInProgress,
15
+ useLinkedAccounts
16
+ };
@@ -1,2 +1,4 @@
1
1
  export { useAccount } from './useAccount.js';
2
2
  export { useWallet } from './useWallet.js';
3
+ export { useWalletBalance } from './useWalletBalance.js';
4
+ export * from './core.js';
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { useAccount } from "./useAccount.js";
4
+ import { useWallet } from "./useWallet.js";
5
+ import { useWalletBalance } from "./useWalletBalance.js";
6
+ export * from "./core.js";
7
+ export {
8
+ useAccount,
9
+ useWallet,
10
+ useWalletBalance
11
+ };
@@ -1,5 +1,94 @@
1
+ import { useContext } from 'react';
2
+ import { Account } from '../../actions/getEmbeddedAccount.js';
3
+ import type { CosmosExternalWalletContextType, UseAccountParameters as UseCosmosAccountParameters } from '@getpara/cosmos-wallet-connectors';
4
+ import type { EvmExternalWalletContextType } from '@getpara/evm-wallet-connectors';
5
+ import type { Adapter } from '@getpara/solana-wallet-connectors';
1
6
  export declare const ACCOUNT_BASE_KEY = "PARA_ACCOUNT";
7
+ type EVMAccountType = ReturnType<ReturnType<typeof useContext<EvmExternalWalletContextType>>['useAccount']>;
8
+ type CosmosAccountType = Omit<ReturnType<ReturnType<typeof useContext<CosmosExternalWalletContextType>>['useAccount']>, 'reconnect'>;
9
+ type SolanaAccountType = Pick<Adapter, 'publicKey' | 'name' | 'icon' | 'readyState' | 'supportedTransactionVersions' | 'url'> & {
10
+ isConnected?: boolean;
11
+ isConnecting?: boolean;
12
+ };
13
+ type ConnectionType = 'embedded' | 'external' | 'both' | 'none';
14
+ type ExternalNetwork = 'evm' | 'cosmos' | 'solana';
2
15
  /**
3
- * Hook for retrieving a user account
16
+ * The return type for the useAccount hook.
17
+ *
18
+ * @property isConnected - Indicates whether there is a wallet connected (either embedded, external or both).
19
+ * @property isLoading - Indicates whether the account is currently loading.
20
+ * @property connectionType - The type of connection for the account:
21
+ * @property embedded - The embedded account object.
22
+ * @property external - An object containing connected external wallet account data:
23
+ * - `evm`: The connected EVM wallet account (if any).
24
+ * - `cosmos`: The connected Cosmos wallet account (if any), with the `reconnect` property omitted.
25
+ * - `solana`: The connected Solana wallet adapter, with only allowed properties included.
4
26
  */
5
- export declare const useAccount: () => import("@tanstack/react-query").UseQueryResult<import("../../actions/getAccount.js").Account, Error>;
27
+ export type UseAccountReturn = {
28
+ /**
29
+ * Indicates whether the client's first-time setup is complete.
30
+ */
31
+ isReady: boolean;
32
+ /**
33
+ * Indicates whether there is a wallet connected (either embedded, external or both).
34
+ */
35
+ isConnected: boolean;
36
+ /**
37
+ * Indicates whether the account is currently loading.
38
+ */
39
+ isLoading: boolean;
40
+ /**
41
+ * The type of connection for the account.
42
+ * - 'embedded': Only the embedded account is connected.
43
+ * - 'external': Only an external wallet is connected.
44
+ * - 'both': Both embedded and external wallets are connected.
45
+ * - 'none': No wallets are connected.
46
+ */
47
+ connectionType: ConnectionType;
48
+ /**
49
+ * The embedded account object. Use this instead of the deprecated top-level properties.
50
+ */
51
+ embedded: Omit<Account, 'isConnected' | 'isGuestMode'> & {
52
+ isConnected: boolean;
53
+ isGuestMode?: boolean;
54
+ };
55
+ /**
56
+ * Connected external wallet account data.
57
+ */
58
+ external: {
59
+ /**
60
+ * The list of connected external networks, which can include 'evm', 'cosmos', and 'solana'.
61
+ */
62
+ connectedNetworks: ExternalNetwork[];
63
+ /**
64
+ * The connected EVM wallet (if any), with only allowed properties included.
65
+ */
66
+ evm: EVMAccountType;
67
+ /**
68
+ * The connected Cosmos wallet (if any), with only allowed properties included.
69
+ */
70
+ cosmos: CosmosAccountType;
71
+ /**
72
+ * The connected Solana wallet (if any), with only allowed properties included.
73
+ */
74
+ solana: SolanaAccountType;
75
+ };
76
+ };
77
+ export type UseAccountParameters = {
78
+ cosmos?: UseCosmosAccountParameters;
79
+ };
80
+ /**
81
+ * React Query hook for retrieving the current embedded account and connected external wallets.
82
+ *
83
+ * @returns {UseAccountReturn}
84
+ * The account data object, or undefined while loading.
85
+ *
86
+ * The returned object contains:
87
+ * - `isConnected`: Indicates whether there is a wallet connected (either embedded, external or both).
88
+ * - `isLoading`: Indicates whether the account is currently loading.
89
+ * - `connectionType`: The type of connection for the account:
90
+ * - `embedded`: The embedded account object.
91
+ * - `external`: Connected external wallet data (EVM, Cosmos, Solana).
92
+ */
93
+ export declare const useAccount: ({ cosmos }?: UseAccountParameters) => UseAccountReturn;
94
+ export {};