@moon-x/react-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,311 @@
1
+ import { PublicWallet, BaseGetBalanceParams, TransactionCommitment, BaseGetTokenAccountsParams, TransactionEncoding, BaseSendTransactionParams, BaseUIOptions, BaseSignMessageParams, BaseSignTransactionParams, TransactionUIOptions, PublicEthereumWallet } from '@moon-x/core/types';
2
+ import { B as BaseWalletHooks } from './base-wallet-CzJLpndu.js';
3
+ import { EthereumFundingConfig } from '@moon-x/core';
4
+
5
+ interface EthereumProvider {
6
+ request: (args: {
7
+ method: string;
8
+ params?: any[];
9
+ }) => Promise<any>;
10
+ requestAccounts: () => Promise<string[]>;
11
+ personalSign: (message: string, account: string) => Promise<string>;
12
+ ethSendTransaction: (transaction: any) => Promise<string>;
13
+ ethSignTransaction: (transaction: any) => Promise<string>;
14
+ ethSignTypedData: (params: any[]) => Promise<string>;
15
+ ethSignTypedDataV4: (params: any[]) => Promise<string>;
16
+ secp256k1Sign: (hash: string) => Promise<string>;
17
+ switchChain: (chainId: number | string) => Promise<void>;
18
+ }
19
+ declare const useEthereumProvider: (wallet: PublicWallet) => EthereumProvider;
20
+ declare const useGetEthereumProvider: () => (wallet: PublicWallet) => EthereumProvider;
21
+
22
+ interface UseFundWalletInterface {
23
+ fundWallet: (address: string, options?: EthereumFundingConfig) => Promise<void>;
24
+ }
25
+ declare const useFundWallet: () => UseFundWalletInterface;
26
+
27
+ interface EthereumWalletHooks extends BaseWalletHooks {
28
+ }
29
+ interface EthereumSignMessageParams extends BaseSignMessageParams {
30
+ wallet: PublicWallet;
31
+ options?: {
32
+ uiOptions?: BaseUIOptions;
33
+ };
34
+ }
35
+ interface EthereumSignTransactionParams extends BaseSignTransactionParams {
36
+ wallet: PublicWallet;
37
+ options?: {
38
+ uiOptions?: BaseUIOptions;
39
+ };
40
+ }
41
+ interface EthereumSendTransactionParams extends BaseSendTransactionParams {
42
+ wallet: PublicWallet;
43
+ options?: {
44
+ uiOptions?: BaseUIOptions;
45
+ network?: string;
46
+ };
47
+ }
48
+ interface EthereumGetBalanceParams extends BaseGetBalanceParams {
49
+ chain?: string;
50
+ options?: {
51
+ commitment?: TransactionCommitment;
52
+ minContextSlot?: number;
53
+ };
54
+ }
55
+ interface EthereumGetTokenAccountsParams extends BaseGetTokenAccountsParams {
56
+ chain?: string;
57
+ mint?: string;
58
+ programId?: string;
59
+ options?: {
60
+ commitment?: TransactionCommitment;
61
+ minContextSlot?: number;
62
+ dataSlice?: {
63
+ offset: number;
64
+ length: number;
65
+ };
66
+ encoding?: TransactionEncoding;
67
+ };
68
+ }
69
+ interface EthereumTokenAccount {
70
+ pubkey: string;
71
+ account: {
72
+ data: {
73
+ program: string;
74
+ parsed: {
75
+ info: {
76
+ isNative: boolean;
77
+ mint: string;
78
+ owner: string;
79
+ state: string;
80
+ tokenAmount: {
81
+ amount: string;
82
+ decimals: number;
83
+ uiAmount: number | null;
84
+ uiAmountString: string;
85
+ };
86
+ };
87
+ type: string;
88
+ };
89
+ space: number;
90
+ };
91
+ executable: boolean;
92
+ lamports: number;
93
+ owner: string;
94
+ rentEpoch: number;
95
+ space: number;
96
+ };
97
+ }
98
+ interface EthereumGetTokenAccountsResult {
99
+ walletAddress: string;
100
+ walletType: string;
101
+ tokenAccounts: EthereumTokenAccount[];
102
+ }
103
+ interface SignMessageUIOptions extends BaseUIOptions {
104
+ commitment?: TransactionCommitment;
105
+ encoding?: TransactionEncoding;
106
+ }
107
+ interface SignTransactionUIOptions extends BaseUIOptions {
108
+ transactionInfo?: TransactionUIOptions;
109
+ successHeader?: string;
110
+ successDescription?: string;
111
+ isCancellable?: boolean;
112
+ }
113
+ interface SignTransactionOptions {
114
+ preflightCommitment?: TransactionCommitment;
115
+ minContextSlot?: number;
116
+ }
117
+ interface SendTransactionOptions {
118
+ commitment?: TransactionCommitment;
119
+ skipPreflight?: boolean;
120
+ maxRetries?: number;
121
+ encoding?: TransactionEncoding;
122
+ replaceRecentBlockhash?: boolean;
123
+ sigVerify?: boolean;
124
+ minContextSlot?: number;
125
+ innerInstructions?: boolean;
126
+ accounts?: any[];
127
+ network?: string;
128
+ }
129
+ interface SendTransactionUIOptions extends BaseUIOptions {
130
+ transactionInfo?: TransactionUIOptions;
131
+ successHeader?: string;
132
+ successDescription?: string;
133
+ isCancellable?: boolean;
134
+ }
135
+ declare const useCreateWallet: (callbacks?: {
136
+ onSuccess?: (result: {
137
+ wallet: PublicWallet;
138
+ }) => void;
139
+ onError?: (error: Error) => void;
140
+ }) => {
141
+ createWallet: (options?: {
142
+ createAdditional?: boolean;
143
+ walletIndex?: number;
144
+ }) => Promise<{
145
+ wallet: PublicWallet;
146
+ }>;
147
+ };
148
+ declare const useWallets: () => {
149
+ wallets: PublicEthereumWallet[];
150
+ loading: boolean;
151
+ error?: Error;
152
+ refetch: () => void;
153
+ };
154
+ declare const useSignMessage: () => {
155
+ signMessage: (params: {
156
+ message: string;
157
+ wallet: PublicWallet;
158
+ requireFreshAssertion?: boolean;
159
+ options?: {
160
+ uiOptions?: SignMessageUIOptions;
161
+ };
162
+ }) => Promise<{
163
+ signature: string;
164
+ }>;
165
+ loading: boolean;
166
+ error: undefined;
167
+ };
168
+ declare const useSignTransaction: () => {
169
+ signTransaction: ({ transaction, wallet, requireFreshAssertion, options, }: {
170
+ transaction: string | object;
171
+ wallet: PublicWallet;
172
+ requireFreshAssertion?: boolean;
173
+ options?: {
174
+ uiOptions?: SignTransactionUIOptions;
175
+ };
176
+ }) => Promise<{
177
+ signature: `0x${string}`;
178
+ serializedSigned?: `0x${string}`;
179
+ hash?: `0x${string}`;
180
+ }>;
181
+ loading: boolean;
182
+ error: undefined;
183
+ };
184
+ declare const useSignHash: () => {
185
+ signHash: (params: {
186
+ hash: `0x${string}` | string;
187
+ wallet: PublicWallet;
188
+ requireFreshAssertion?: boolean;
189
+ options?: {
190
+ uiOptions?: any;
191
+ };
192
+ }) => Promise<{
193
+ signature: `0x${string}`;
194
+ }>;
195
+ loading: boolean;
196
+ error: undefined;
197
+ };
198
+ declare const useSignTypedData: () => {
199
+ signTypedData: (params: {
200
+ domain: any;
201
+ types: any;
202
+ primaryType: string;
203
+ message: any;
204
+ wallet: PublicWallet;
205
+ requireFreshAssertion?: boolean;
206
+ options?: {
207
+ uiOptions?: any;
208
+ };
209
+ }) => Promise<{
210
+ signature: `0x${string}`;
211
+ }>;
212
+ loading: boolean;
213
+ error: undefined;
214
+ };
215
+ declare const useSign7702Authorization: () => {
216
+ signAuthorization: ({ contractAddress, nonce, executor, wallet, requireFreshAssertion, options, }: {
217
+ contractAddress: `0x${string}`;
218
+ nonce?: number;
219
+ executor?: "self" | `0x${string}`;
220
+ wallet: PublicWallet | PublicEthereumWallet;
221
+ requireFreshAssertion?: boolean;
222
+ options?: {
223
+ uiOptions?: any;
224
+ };
225
+ }) => Promise<{
226
+ r: `0x${string}`;
227
+ s: `0x${string}`;
228
+ v?: bigint;
229
+ yParity: number;
230
+ address: `0x${string}`;
231
+ chainId: number;
232
+ nonce: number;
233
+ }>;
234
+ loading: boolean;
235
+ error: undefined;
236
+ };
237
+ declare const useSendTransaction: () => {
238
+ sendTransaction: ({ transaction, wallet, requireFreshAssertion, options, }: {
239
+ transaction: {
240
+ to?: string;
241
+ value?: string | number | bigint;
242
+ nonce?: string | number | bigint;
243
+ gasLimit?: string | number | bigint;
244
+ gasPrice?: string | number | bigint;
245
+ data?: string;
246
+ chainId?: number;
247
+ type?: number;
248
+ maxPriorityFeePerGas?: string | number | bigint;
249
+ maxFeePerGas?: string | number | bigint;
250
+ };
251
+ wallet: PublicWallet | PublicEthereumWallet;
252
+ requireFreshAssertion?: boolean;
253
+ options?: {
254
+ uiOptions?: any;
255
+ };
256
+ }) => Promise<{
257
+ hash: `0x${string}`;
258
+ }>;
259
+ loading: boolean;
260
+ error: undefined;
261
+ };
262
+ declare const useGetBalance: () => {
263
+ getBalance: (params: EthereumGetBalanceParams) => Promise<any>;
264
+ loading: boolean;
265
+ error: undefined;
266
+ };
267
+ declare const useExportKey: () => {
268
+ exportKey: ({ wallet }: {
269
+ wallet: PublicWallet;
270
+ }) => Promise<any>;
271
+ };
272
+ declare const useImportKey: () => {
273
+ importKey: (params?: {
274
+ key?: string;
275
+ }) => Promise<PublicWallet>;
276
+ };
277
+
278
+ type ethereum_EthereumGetBalanceParams = EthereumGetBalanceParams;
279
+ type ethereum_EthereumGetTokenAccountsParams = EthereumGetTokenAccountsParams;
280
+ type ethereum_EthereumGetTokenAccountsResult = EthereumGetTokenAccountsResult;
281
+ type ethereum_EthereumProvider = EthereumProvider;
282
+ type ethereum_EthereumSendTransactionParams = EthereumSendTransactionParams;
283
+ type ethereum_EthereumSignMessageParams = EthereumSignMessageParams;
284
+ type ethereum_EthereumSignTransactionParams = EthereumSignTransactionParams;
285
+ type ethereum_EthereumTokenAccount = EthereumTokenAccount;
286
+ type ethereum_EthereumWalletHooks = EthereumWalletHooks;
287
+ type ethereum_SendTransactionOptions = SendTransactionOptions;
288
+ type ethereum_SendTransactionUIOptions = SendTransactionUIOptions;
289
+ type ethereum_SignMessageUIOptions = SignMessageUIOptions;
290
+ type ethereum_SignTransactionOptions = SignTransactionOptions;
291
+ type ethereum_SignTransactionUIOptions = SignTransactionUIOptions;
292
+ type ethereum_UseFundWalletInterface = UseFundWalletInterface;
293
+ declare const ethereum_useCreateWallet: typeof useCreateWallet;
294
+ declare const ethereum_useEthereumProvider: typeof useEthereumProvider;
295
+ declare const ethereum_useExportKey: typeof useExportKey;
296
+ declare const ethereum_useFundWallet: typeof useFundWallet;
297
+ declare const ethereum_useGetBalance: typeof useGetBalance;
298
+ declare const ethereum_useGetEthereumProvider: typeof useGetEthereumProvider;
299
+ declare const ethereum_useImportKey: typeof useImportKey;
300
+ declare const ethereum_useSendTransaction: typeof useSendTransaction;
301
+ declare const ethereum_useSign7702Authorization: typeof useSign7702Authorization;
302
+ declare const ethereum_useSignHash: typeof useSignHash;
303
+ declare const ethereum_useSignMessage: typeof useSignMessage;
304
+ declare const ethereum_useSignTransaction: typeof useSignTransaction;
305
+ declare const ethereum_useSignTypedData: typeof useSignTypedData;
306
+ declare const ethereum_useWallets: typeof useWallets;
307
+ declare namespace ethereum {
308
+ export { type ethereum_EthereumGetBalanceParams as EthereumGetBalanceParams, type ethereum_EthereumGetTokenAccountsParams as EthereumGetTokenAccountsParams, type ethereum_EthereumGetTokenAccountsResult as EthereumGetTokenAccountsResult, type ethereum_EthereumProvider as EthereumProvider, type ethereum_EthereumSendTransactionParams as EthereumSendTransactionParams, type ethereum_EthereumSignMessageParams as EthereumSignMessageParams, type ethereum_EthereumSignTransactionParams as EthereumSignTransactionParams, type ethereum_EthereumTokenAccount as EthereumTokenAccount, type ethereum_EthereumWalletHooks as EthereumWalletHooks, type ethereum_SendTransactionOptions as SendTransactionOptions, type ethereum_SendTransactionUIOptions as SendTransactionUIOptions, type ethereum_SignMessageUIOptions as SignMessageUIOptions, type ethereum_SignTransactionOptions as SignTransactionOptions, type ethereum_SignTransactionUIOptions as SignTransactionUIOptions, type ethereum_UseFundWalletInterface as UseFundWalletInterface, ethereum_useCreateWallet as useCreateWallet, ethereum_useEthereumProvider as useEthereumProvider, ethereum_useExportKey as useExportKey, ethereum_useFundWallet as useFundWallet, ethereum_useGetBalance as useGetBalance, ethereum_useGetEthereumProvider as useGetEthereumProvider, ethereum_useImportKey as useImportKey, ethereum_useSendTransaction as useSendTransaction, ethereum_useSign7702Authorization as useSign7702Authorization, ethereum_useSignHash as useSignHash, ethereum_useSignMessage as useSignMessage, ethereum_useSignTransaction as useSignTransaction, ethereum_useSignTypedData as useSignTypedData, ethereum_useWallets as useWallets };
309
+ }
310
+
311
+ export { useWallets as A, type EthereumGetBalanceParams as E, type SendTransactionOptions as S, type UseFundWalletInterface as U, type EthereumGetTokenAccountsParams as a, type EthereumGetTokenAccountsResult as b, type EthereumProvider as c, type EthereumSendTransactionParams as d, ethereum as e, type EthereumSignMessageParams as f, type EthereumSignTransactionParams as g, type EthereumTokenAccount as h, type EthereumWalletHooks as i, type SendTransactionUIOptions as j, type SignMessageUIOptions as k, type SignTransactionOptions as l, type SignTransactionUIOptions as m, useEthereumProvider as n, useExportKey as o, useFundWallet as p, useGetBalance as q, useGetEthereumProvider as r, useImportKey as s, useSendTransaction as t, useCreateWallet as u, useSign7702Authorization as v, useSignHash as w, useSignMessage as x, useSignTransaction as y, useSignTypedData as z };
@@ -0,0 +1,311 @@
1
+ import { PublicWallet, BaseGetBalanceParams, TransactionCommitment, BaseGetTokenAccountsParams, TransactionEncoding, BaseSendTransactionParams, BaseUIOptions, BaseSignMessageParams, BaseSignTransactionParams, TransactionUIOptions, PublicEthereumWallet } from '@moon-x/core/types';
2
+ import { B as BaseWalletHooks } from './base-wallet-CzJLpndu.mjs';
3
+ import { EthereumFundingConfig } from '@moon-x/core';
4
+
5
+ interface EthereumProvider {
6
+ request: (args: {
7
+ method: string;
8
+ params?: any[];
9
+ }) => Promise<any>;
10
+ requestAccounts: () => Promise<string[]>;
11
+ personalSign: (message: string, account: string) => Promise<string>;
12
+ ethSendTransaction: (transaction: any) => Promise<string>;
13
+ ethSignTransaction: (transaction: any) => Promise<string>;
14
+ ethSignTypedData: (params: any[]) => Promise<string>;
15
+ ethSignTypedDataV4: (params: any[]) => Promise<string>;
16
+ secp256k1Sign: (hash: string) => Promise<string>;
17
+ switchChain: (chainId: number | string) => Promise<void>;
18
+ }
19
+ declare const useEthereumProvider: (wallet: PublicWallet) => EthereumProvider;
20
+ declare const useGetEthereumProvider: () => (wallet: PublicWallet) => EthereumProvider;
21
+
22
+ interface UseFundWalletInterface {
23
+ fundWallet: (address: string, options?: EthereumFundingConfig) => Promise<void>;
24
+ }
25
+ declare const useFundWallet: () => UseFundWalletInterface;
26
+
27
+ interface EthereumWalletHooks extends BaseWalletHooks {
28
+ }
29
+ interface EthereumSignMessageParams extends BaseSignMessageParams {
30
+ wallet: PublicWallet;
31
+ options?: {
32
+ uiOptions?: BaseUIOptions;
33
+ };
34
+ }
35
+ interface EthereumSignTransactionParams extends BaseSignTransactionParams {
36
+ wallet: PublicWallet;
37
+ options?: {
38
+ uiOptions?: BaseUIOptions;
39
+ };
40
+ }
41
+ interface EthereumSendTransactionParams extends BaseSendTransactionParams {
42
+ wallet: PublicWallet;
43
+ options?: {
44
+ uiOptions?: BaseUIOptions;
45
+ network?: string;
46
+ };
47
+ }
48
+ interface EthereumGetBalanceParams extends BaseGetBalanceParams {
49
+ chain?: string;
50
+ options?: {
51
+ commitment?: TransactionCommitment;
52
+ minContextSlot?: number;
53
+ };
54
+ }
55
+ interface EthereumGetTokenAccountsParams extends BaseGetTokenAccountsParams {
56
+ chain?: string;
57
+ mint?: string;
58
+ programId?: string;
59
+ options?: {
60
+ commitment?: TransactionCommitment;
61
+ minContextSlot?: number;
62
+ dataSlice?: {
63
+ offset: number;
64
+ length: number;
65
+ };
66
+ encoding?: TransactionEncoding;
67
+ };
68
+ }
69
+ interface EthereumTokenAccount {
70
+ pubkey: string;
71
+ account: {
72
+ data: {
73
+ program: string;
74
+ parsed: {
75
+ info: {
76
+ isNative: boolean;
77
+ mint: string;
78
+ owner: string;
79
+ state: string;
80
+ tokenAmount: {
81
+ amount: string;
82
+ decimals: number;
83
+ uiAmount: number | null;
84
+ uiAmountString: string;
85
+ };
86
+ };
87
+ type: string;
88
+ };
89
+ space: number;
90
+ };
91
+ executable: boolean;
92
+ lamports: number;
93
+ owner: string;
94
+ rentEpoch: number;
95
+ space: number;
96
+ };
97
+ }
98
+ interface EthereumGetTokenAccountsResult {
99
+ walletAddress: string;
100
+ walletType: string;
101
+ tokenAccounts: EthereumTokenAccount[];
102
+ }
103
+ interface SignMessageUIOptions extends BaseUIOptions {
104
+ commitment?: TransactionCommitment;
105
+ encoding?: TransactionEncoding;
106
+ }
107
+ interface SignTransactionUIOptions extends BaseUIOptions {
108
+ transactionInfo?: TransactionUIOptions;
109
+ successHeader?: string;
110
+ successDescription?: string;
111
+ isCancellable?: boolean;
112
+ }
113
+ interface SignTransactionOptions {
114
+ preflightCommitment?: TransactionCommitment;
115
+ minContextSlot?: number;
116
+ }
117
+ interface SendTransactionOptions {
118
+ commitment?: TransactionCommitment;
119
+ skipPreflight?: boolean;
120
+ maxRetries?: number;
121
+ encoding?: TransactionEncoding;
122
+ replaceRecentBlockhash?: boolean;
123
+ sigVerify?: boolean;
124
+ minContextSlot?: number;
125
+ innerInstructions?: boolean;
126
+ accounts?: any[];
127
+ network?: string;
128
+ }
129
+ interface SendTransactionUIOptions extends BaseUIOptions {
130
+ transactionInfo?: TransactionUIOptions;
131
+ successHeader?: string;
132
+ successDescription?: string;
133
+ isCancellable?: boolean;
134
+ }
135
+ declare const useCreateWallet: (callbacks?: {
136
+ onSuccess?: (result: {
137
+ wallet: PublicWallet;
138
+ }) => void;
139
+ onError?: (error: Error) => void;
140
+ }) => {
141
+ createWallet: (options?: {
142
+ createAdditional?: boolean;
143
+ walletIndex?: number;
144
+ }) => Promise<{
145
+ wallet: PublicWallet;
146
+ }>;
147
+ };
148
+ declare const useWallets: () => {
149
+ wallets: PublicEthereumWallet[];
150
+ loading: boolean;
151
+ error?: Error;
152
+ refetch: () => void;
153
+ };
154
+ declare const useSignMessage: () => {
155
+ signMessage: (params: {
156
+ message: string;
157
+ wallet: PublicWallet;
158
+ requireFreshAssertion?: boolean;
159
+ options?: {
160
+ uiOptions?: SignMessageUIOptions;
161
+ };
162
+ }) => Promise<{
163
+ signature: string;
164
+ }>;
165
+ loading: boolean;
166
+ error: undefined;
167
+ };
168
+ declare const useSignTransaction: () => {
169
+ signTransaction: ({ transaction, wallet, requireFreshAssertion, options, }: {
170
+ transaction: string | object;
171
+ wallet: PublicWallet;
172
+ requireFreshAssertion?: boolean;
173
+ options?: {
174
+ uiOptions?: SignTransactionUIOptions;
175
+ };
176
+ }) => Promise<{
177
+ signature: `0x${string}`;
178
+ serializedSigned?: `0x${string}`;
179
+ hash?: `0x${string}`;
180
+ }>;
181
+ loading: boolean;
182
+ error: undefined;
183
+ };
184
+ declare const useSignHash: () => {
185
+ signHash: (params: {
186
+ hash: `0x${string}` | string;
187
+ wallet: PublicWallet;
188
+ requireFreshAssertion?: boolean;
189
+ options?: {
190
+ uiOptions?: any;
191
+ };
192
+ }) => Promise<{
193
+ signature: `0x${string}`;
194
+ }>;
195
+ loading: boolean;
196
+ error: undefined;
197
+ };
198
+ declare const useSignTypedData: () => {
199
+ signTypedData: (params: {
200
+ domain: any;
201
+ types: any;
202
+ primaryType: string;
203
+ message: any;
204
+ wallet: PublicWallet;
205
+ requireFreshAssertion?: boolean;
206
+ options?: {
207
+ uiOptions?: any;
208
+ };
209
+ }) => Promise<{
210
+ signature: `0x${string}`;
211
+ }>;
212
+ loading: boolean;
213
+ error: undefined;
214
+ };
215
+ declare const useSign7702Authorization: () => {
216
+ signAuthorization: ({ contractAddress, nonce, executor, wallet, requireFreshAssertion, options, }: {
217
+ contractAddress: `0x${string}`;
218
+ nonce?: number;
219
+ executor?: "self" | `0x${string}`;
220
+ wallet: PublicWallet | PublicEthereumWallet;
221
+ requireFreshAssertion?: boolean;
222
+ options?: {
223
+ uiOptions?: any;
224
+ };
225
+ }) => Promise<{
226
+ r: `0x${string}`;
227
+ s: `0x${string}`;
228
+ v?: bigint;
229
+ yParity: number;
230
+ address: `0x${string}`;
231
+ chainId: number;
232
+ nonce: number;
233
+ }>;
234
+ loading: boolean;
235
+ error: undefined;
236
+ };
237
+ declare const useSendTransaction: () => {
238
+ sendTransaction: ({ transaction, wallet, requireFreshAssertion, options, }: {
239
+ transaction: {
240
+ to?: string;
241
+ value?: string | number | bigint;
242
+ nonce?: string | number | bigint;
243
+ gasLimit?: string | number | bigint;
244
+ gasPrice?: string | number | bigint;
245
+ data?: string;
246
+ chainId?: number;
247
+ type?: number;
248
+ maxPriorityFeePerGas?: string | number | bigint;
249
+ maxFeePerGas?: string | number | bigint;
250
+ };
251
+ wallet: PublicWallet | PublicEthereumWallet;
252
+ requireFreshAssertion?: boolean;
253
+ options?: {
254
+ uiOptions?: any;
255
+ };
256
+ }) => Promise<{
257
+ hash: `0x${string}`;
258
+ }>;
259
+ loading: boolean;
260
+ error: undefined;
261
+ };
262
+ declare const useGetBalance: () => {
263
+ getBalance: (params: EthereumGetBalanceParams) => Promise<any>;
264
+ loading: boolean;
265
+ error: undefined;
266
+ };
267
+ declare const useExportKey: () => {
268
+ exportKey: ({ wallet }: {
269
+ wallet: PublicWallet;
270
+ }) => Promise<any>;
271
+ };
272
+ declare const useImportKey: () => {
273
+ importKey: (params?: {
274
+ key?: string;
275
+ }) => Promise<PublicWallet>;
276
+ };
277
+
278
+ type ethereum_EthereumGetBalanceParams = EthereumGetBalanceParams;
279
+ type ethereum_EthereumGetTokenAccountsParams = EthereumGetTokenAccountsParams;
280
+ type ethereum_EthereumGetTokenAccountsResult = EthereumGetTokenAccountsResult;
281
+ type ethereum_EthereumProvider = EthereumProvider;
282
+ type ethereum_EthereumSendTransactionParams = EthereumSendTransactionParams;
283
+ type ethereum_EthereumSignMessageParams = EthereumSignMessageParams;
284
+ type ethereum_EthereumSignTransactionParams = EthereumSignTransactionParams;
285
+ type ethereum_EthereumTokenAccount = EthereumTokenAccount;
286
+ type ethereum_EthereumWalletHooks = EthereumWalletHooks;
287
+ type ethereum_SendTransactionOptions = SendTransactionOptions;
288
+ type ethereum_SendTransactionUIOptions = SendTransactionUIOptions;
289
+ type ethereum_SignMessageUIOptions = SignMessageUIOptions;
290
+ type ethereum_SignTransactionOptions = SignTransactionOptions;
291
+ type ethereum_SignTransactionUIOptions = SignTransactionUIOptions;
292
+ type ethereum_UseFundWalletInterface = UseFundWalletInterface;
293
+ declare const ethereum_useCreateWallet: typeof useCreateWallet;
294
+ declare const ethereum_useEthereumProvider: typeof useEthereumProvider;
295
+ declare const ethereum_useExportKey: typeof useExportKey;
296
+ declare const ethereum_useFundWallet: typeof useFundWallet;
297
+ declare const ethereum_useGetBalance: typeof useGetBalance;
298
+ declare const ethereum_useGetEthereumProvider: typeof useGetEthereumProvider;
299
+ declare const ethereum_useImportKey: typeof useImportKey;
300
+ declare const ethereum_useSendTransaction: typeof useSendTransaction;
301
+ declare const ethereum_useSign7702Authorization: typeof useSign7702Authorization;
302
+ declare const ethereum_useSignHash: typeof useSignHash;
303
+ declare const ethereum_useSignMessage: typeof useSignMessage;
304
+ declare const ethereum_useSignTransaction: typeof useSignTransaction;
305
+ declare const ethereum_useSignTypedData: typeof useSignTypedData;
306
+ declare const ethereum_useWallets: typeof useWallets;
307
+ declare namespace ethereum {
308
+ export { type ethereum_EthereumGetBalanceParams as EthereumGetBalanceParams, type ethereum_EthereumGetTokenAccountsParams as EthereumGetTokenAccountsParams, type ethereum_EthereumGetTokenAccountsResult as EthereumGetTokenAccountsResult, type ethereum_EthereumProvider as EthereumProvider, type ethereum_EthereumSendTransactionParams as EthereumSendTransactionParams, type ethereum_EthereumSignMessageParams as EthereumSignMessageParams, type ethereum_EthereumSignTransactionParams as EthereumSignTransactionParams, type ethereum_EthereumTokenAccount as EthereumTokenAccount, type ethereum_EthereumWalletHooks as EthereumWalletHooks, type ethereum_SendTransactionOptions as SendTransactionOptions, type ethereum_SendTransactionUIOptions as SendTransactionUIOptions, type ethereum_SignMessageUIOptions as SignMessageUIOptions, type ethereum_SignTransactionOptions as SignTransactionOptions, type ethereum_SignTransactionUIOptions as SignTransactionUIOptions, type ethereum_UseFundWalletInterface as UseFundWalletInterface, ethereum_useCreateWallet as useCreateWallet, ethereum_useEthereumProvider as useEthereumProvider, ethereum_useExportKey as useExportKey, ethereum_useFundWallet as useFundWallet, ethereum_useGetBalance as useGetBalance, ethereum_useGetEthereumProvider as useGetEthereumProvider, ethereum_useImportKey as useImportKey, ethereum_useSendTransaction as useSendTransaction, ethereum_useSign7702Authorization as useSign7702Authorization, ethereum_useSignHash as useSignHash, ethereum_useSignMessage as useSignMessage, ethereum_useSignTransaction as useSignTransaction, ethereum_useSignTypedData as useSignTypedData, ethereum_useWallets as useWallets };
309
+ }
310
+
311
+ export { useWallets as A, type EthereumGetBalanceParams as E, type SendTransactionOptions as S, type UseFundWalletInterface as U, type EthereumGetTokenAccountsParams as a, type EthereumGetTokenAccountsResult as b, type EthereumProvider as c, type EthereumSendTransactionParams as d, ethereum as e, type EthereumSignMessageParams as f, type EthereumSignTransactionParams as g, type EthereumTokenAccount as h, type EthereumWalletHooks as i, type SendTransactionUIOptions as j, type SignMessageUIOptions as k, type SignTransactionOptions as l, type SignTransactionUIOptions as m, useEthereumProvider as n, useExportKey as o, useFundWallet as p, useGetBalance as q, useGetEthereumProvider as r, useImportKey as s, useSendTransaction as t, useCreateWallet as u, useSign7702Authorization as v, useSignHash as w, useSignMessage as x, useSignTransaction as y, useSignTypedData as z };