@metamask-previews/keyring-api 23.1.0-de887b2 → 23.2.0-c42f34c

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 (42) hide show
  1. package/CHANGELOG.md +8 -4
  2. package/dist/api/account.d.cts +2 -2
  3. package/dist/api/account.d.mts +2 -2
  4. package/dist/api/asset.d.cts +2 -2
  5. package/dist/api/asset.d.mts +2 -2
  6. package/dist/api/request.d.cts +3 -3
  7. package/dist/api/request.d.mts +3 -3
  8. package/dist/api/response.d.cts +1 -1
  9. package/dist/api/response.d.mts +1 -1
  10. package/dist/api/transaction.d.cts +71 -71
  11. package/dist/api/transaction.d.mts +71 -71
  12. package/dist/btc/types.d.cts +8 -8
  13. package/dist/btc/types.d.mts +8 -8
  14. package/dist/eth/erc4337/types.d.cts +3 -3
  15. package/dist/eth/erc4337/types.d.mts +3 -3
  16. package/dist/eth/rpc/params.d.cts +29 -29
  17. package/dist/eth/rpc/params.d.mts +29 -29
  18. package/dist/eth/types.cjs +5 -2
  19. package/dist/eth/types.cjs.map +1 -1
  20. package/dist/eth/types.d.cts +5 -4
  21. package/dist/eth/types.d.cts.map +1 -1
  22. package/dist/eth/types.d.mts +5 -4
  23. package/dist/eth/types.d.mts.map +1 -1
  24. package/dist/eth/types.mjs +4 -1
  25. package/dist/eth/types.mjs.map +1 -1
  26. package/dist/events.d.cts +56 -56
  27. package/dist/events.d.mts +56 -56
  28. package/dist/rpc.d.cts +131 -131
  29. package/dist/rpc.d.mts +131 -131
  30. package/dist/sol/types.d.cts +2 -2
  31. package/dist/sol/types.d.mts +2 -2
  32. package/dist/trx/types.d.cts +2 -2
  33. package/dist/trx/types.d.mts +2 -2
  34. package/dist/v2/api/create-account/bip44.d.cts +1 -1
  35. package/dist/v2/api/create-account/bip44.d.mts +1 -1
  36. package/dist/v2/api/create-account/index.d.cts +1 -1
  37. package/dist/v2/api/create-account/index.d.mts +1 -1
  38. package/dist/v2/api/keyring-rpc.d.cts +28 -28
  39. package/dist/v2/api/keyring-rpc.d.mts +28 -28
  40. package/dist/xlm/types.d.cts +2 -2
  41. package/dist/xlm/types.d.mts +2 -2
  42. package/package.json +1 -1
package/dist/rpc.d.cts CHANGED
@@ -31,8 +31,8 @@ export declare enum KeyringRpcMethod {
31
31
  */
32
32
  export declare function isKeyringRpcMethod(method: string): method is KeyringRpcMethod;
33
33
  export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
34
- method: "keyring_listAccounts";
35
34
  id: string | number | null;
35
+ method: "keyring_listAccounts";
36
36
  jsonrpc: "2.0";
37
37
  }, {
38
38
  method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
@@ -43,6 +43,8 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
43
43
  export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
44
44
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
45
45
  id: string;
46
+ address: string;
47
+ scopes: `${string}:${string}`[];
46
48
  options: Record<string, import("@metamask/utils").Json> & {
47
49
  entropy?: {
48
50
  type: "mnemonic";
@@ -56,12 +58,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
56
58
  };
57
59
  exportable?: boolean;
58
60
  };
59
- address: string;
60
- scopes: `${string}:${string}`[];
61
61
  methods: string[];
62
62
  }[], import("@metamask/superstruct").Struct<{
63
63
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
64
64
  id: string;
65
+ address: string;
66
+ scopes: `${string}:${string}`[];
65
67
  options: Record<string, import("@metamask/utils").Json> & {
66
68
  entropy?: {
67
69
  type: "mnemonic";
@@ -75,8 +77,6 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
75
77
  };
76
78
  exportable?: boolean;
77
79
  };
78
- address: string;
79
- scopes: `${string}:${string}`[];
80
80
  methods: string[];
81
81
  }, {
82
82
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -111,12 +111,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
111
111
  }>>;
112
112
  export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
113
113
  export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
114
- method: "keyring_getAccount";
115
114
  id: string | number | null;
116
- jsonrpc: "2.0";
115
+ method: "keyring_getAccount";
117
116
  params: {
118
117
  id: string;
119
118
  };
119
+ jsonrpc: "2.0";
120
120
  }, {
121
121
  method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
122
122
  params: import("@metamask/superstruct").Struct<{
@@ -131,6 +131,8 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
131
131
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
132
132
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
133
133
  id: string;
134
+ address: string;
135
+ scopes: `${string}:${string}`[];
134
136
  options: Record<string, import("@metamask/utils").Json> & {
135
137
  entropy?: {
136
138
  type: "mnemonic";
@@ -144,8 +146,6 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
144
146
  };
145
147
  exportable?: boolean;
146
148
  };
147
- address: string;
148
- scopes: `${string}:${string}`[];
149
149
  methods: string[];
150
150
  }, {
151
151
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -180,12 +180,12 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
180
180
  }>;
181
181
  export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
182
182
  export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
183
- method: "keyring_createAccount";
184
183
  id: string | number | null;
185
- jsonrpc: "2.0";
184
+ method: "keyring_createAccount";
186
185
  params: {
187
186
  options: Record<string, import("@metamask/utils").Json>;
188
187
  };
188
+ jsonrpc: "2.0";
189
189
  }, {
190
190
  method: import("@metamask/superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
191
191
  params: import("@metamask/superstruct").Struct<{
@@ -200,6 +200,8 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
200
200
  export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
201
201
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
202
202
  id: string;
203
+ address: string;
204
+ scopes: `${string}:${string}`[];
203
205
  options: Record<string, import("@metamask/utils").Json> & {
204
206
  entropy?: {
205
207
  type: "mnemonic";
@@ -213,8 +215,6 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
213
215
  };
214
216
  exportable?: boolean;
215
217
  };
216
- address: string;
217
- scopes: `${string}:${string}`[];
218
218
  methods: string[];
219
219
  }, {
220
220
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -249,9 +249,8 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
249
249
  }>;
250
250
  export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
251
251
  export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
252
- method: "keyring_createAccounts";
253
252
  id: string | number | null;
254
- jsonrpc: "2.0";
253
+ method: "keyring_createAccounts";
255
254
  params: {
256
255
  options: {
257
256
  type: "bip44:derive-path";
@@ -267,11 +266,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
267
266
  entropySource: string;
268
267
  } | {
269
268
  type: "bip44:derive-index-range";
269
+ entropySource: string;
270
270
  range: {
271
271
  from: number;
272
272
  to: number;
273
273
  };
274
- entropySource: string;
275
274
  } | {
276
275
  type: "custom";
277
276
  } | {
@@ -281,6 +280,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
281
280
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
282
281
  };
283
282
  };
283
+ jsonrpc: "2.0";
284
284
  }, {
285
285
  method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
286
286
  params: import("@metamask/superstruct").Struct<{
@@ -298,11 +298,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
298
298
  entropySource: string;
299
299
  } | {
300
300
  type: "bip44:derive-index-range";
301
+ entropySource: string;
301
302
  range: {
302
303
  from: number;
303
304
  to: number;
304
305
  };
305
- entropySource: string;
306
306
  } | {
307
307
  type: "custom";
308
308
  } | {
@@ -326,11 +326,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
326
326
  entropySource: string;
327
327
  } | {
328
328
  type: "bip44:derive-index-range";
329
+ entropySource: string;
329
330
  range: {
330
331
  from: number;
331
332
  to: number;
332
333
  };
333
- entropySource: string;
334
334
  } | {
335
335
  type: "custom";
336
336
  } | {
@@ -347,6 +347,8 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
347
347
  export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
348
348
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
349
349
  id: string;
350
+ address: string;
351
+ scopes: `${string}:${string}`[];
350
352
  options: Record<string, import("@metamask/utils").Json> & {
351
353
  entropy?: {
352
354
  type: "mnemonic";
@@ -360,12 +362,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
360
362
  };
361
363
  exportable?: boolean;
362
364
  };
363
- address: string;
364
- scopes: `${string}:${string}`[];
365
365
  methods: string[];
366
366
  }[], import("@metamask/superstruct").Struct<{
367
367
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
368
368
  id: string;
369
+ address: string;
370
+ scopes: `${string}:${string}`[];
369
371
  options: Record<string, import("@metamask/utils").Json> & {
370
372
  entropy?: {
371
373
  type: "mnemonic";
@@ -379,8 +381,6 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
379
381
  };
380
382
  exportable?: boolean;
381
383
  };
382
- address: string;
383
- scopes: `${string}:${string}`[];
384
384
  methods: string[];
385
385
  }, {
386
386
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -415,12 +415,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
415
415
  }>>;
416
416
  export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
417
417
  export declare const SetSelectedAccountsRequestStruct: import("@metamask/superstruct").Struct<{
418
- method: "keyring_setSelectedAccounts";
419
418
  id: string | number | null;
420
- jsonrpc: "2.0";
419
+ method: "keyring_setSelectedAccounts";
421
420
  params: {
422
421
  accounts: string[];
423
422
  };
423
+ jsonrpc: "2.0";
424
424
  }, {
425
425
  method: import("@metamask/superstruct").Struct<"keyring_setSelectedAccounts", "keyring_setSelectedAccounts">;
426
426
  params: import("@metamask/superstruct").Struct<{
@@ -435,14 +435,14 @@ export type SetSelectedAccountsRequest = Infer<typeof SetSelectedAccountsRequest
435
435
  export declare const SetSelectedAccountsResponseStruct: import("@metamask/superstruct").Struct<null, null>;
436
436
  export type SetSelectedAccountsResponse = Infer<typeof SetSelectedAccountsResponseStruct>;
437
437
  export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruct").Struct<{
438
- method: "keyring_discoverAccounts";
439
438
  id: string | number | null;
440
- jsonrpc: "2.0";
439
+ method: "keyring_discoverAccounts";
441
440
  params: {
442
441
  groupIndex: number;
443
442
  scopes: `${string}:${string}`[];
444
443
  entropySource: string;
445
444
  };
445
+ jsonrpc: "2.0";
446
446
  }, {
447
447
  method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
448
448
  params: import("@metamask/superstruct").Struct<{
@@ -473,9 +473,8 @@ export declare const DiscoverAccountsResponseStruct: import("@metamask/superstru
473
473
  }>>;
474
474
  export type DiscoverAccountsResponse = Infer<typeof DiscoverAccountsResponseStruct>;
475
475
  export declare const ListAccountTransactionsRequestStruct: import("@metamask/superstruct").Struct<{
476
- method: "keyring_listAccountTransactions";
477
476
  id: string | number | null;
478
- jsonrpc: "2.0";
477
+ method: "keyring_listAccountTransactions";
479
478
  params: {
480
479
  id: string;
481
480
  pagination: {
@@ -483,6 +482,7 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
483
482
  next?: string | null;
484
483
  };
485
484
  };
485
+ jsonrpc: "2.0";
486
486
  }, {
487
487
  method: import("@metamask/superstruct").Struct<"keyring_listAccountTransactions", "keyring_listAccountTransactions">;
488
488
  params: import("@metamask/superstruct").Struct<{
@@ -506,14 +506,19 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
506
506
  }>;
507
507
  export type ListAccountTransactionsRequest = Infer<typeof ListAccountTransactionsRequestStruct>;
508
508
  export declare const ListAccountTransactionsResponseStruct: import("@metamask/superstruct").Struct<{
509
+ next: string | null;
509
510
  data: {
510
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
511
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
511
512
  id: string;
513
+ account: string;
514
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
515
+ timestamp: number | null;
516
+ chain: `${string}:${string}`;
512
517
  from: {
513
518
  address: string;
514
519
  asset: {
515
- unit: string;
516
520
  type: `${string}:${string}/${string}:${string}`;
521
+ unit: string;
517
522
  amount: string;
518
523
  fungible: true;
519
524
  } | {
@@ -521,19 +526,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
521
526
  fungible: false;
522
527
  } | null;
523
528
  }[];
524
- events: {
525
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
526
- timestamp: number | null;
527
- }[];
528
- chain: `${string}:${string}`;
529
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
530
- account: string;
531
- timestamp: number | null;
532
529
  to: {
533
530
  address: string;
534
531
  asset: {
535
- unit: string;
536
532
  type: `${string}:${string}/${string}:${string}`;
533
+ unit: string;
537
534
  amount: string;
538
535
  fungible: true;
539
536
  } | {
@@ -544,8 +541,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
544
541
  fees: {
545
542
  type: "base" | "priority";
546
543
  asset: {
547
- unit: string;
548
544
  type: `${string}:${string}/${string}:${string}`;
545
+ unit: string;
549
546
  amount: string;
550
547
  fungible: true;
551
548
  } | {
@@ -553,21 +550,28 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
553
550
  fungible: false;
554
551
  };
555
552
  }[];
553
+ events: {
554
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
555
+ timestamp: number | null;
556
+ }[];
556
557
  details?: {
557
558
  origin?: string;
558
559
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
559
560
  };
560
561
  }[];
561
- next: string | null;
562
562
  }, {
563
563
  data: import("@metamask/superstruct").Struct<{
564
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
564
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
565
565
  id: string;
566
+ account: string;
567
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
568
+ timestamp: number | null;
569
+ chain: `${string}:${string}`;
566
570
  from: {
567
571
  address: string;
568
572
  asset: {
569
- unit: string;
570
573
  type: `${string}:${string}/${string}:${string}`;
574
+ unit: string;
571
575
  amount: string;
572
576
  fungible: true;
573
577
  } | {
@@ -575,19 +579,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
575
579
  fungible: false;
576
580
  } | null;
577
581
  }[];
578
- events: {
579
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
580
- timestamp: number | null;
581
- }[];
582
- chain: `${string}:${string}`;
583
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
584
- account: string;
585
- timestamp: number | null;
586
582
  to: {
587
583
  address: string;
588
584
  asset: {
589
- unit: string;
590
585
  type: `${string}:${string}/${string}:${string}`;
586
+ unit: string;
591
587
  amount: string;
592
588
  fungible: true;
593
589
  } | {
@@ -598,8 +594,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
598
594
  fees: {
599
595
  type: "base" | "priority";
600
596
  asset: {
601
- unit: string;
602
597
  type: `${string}:${string}/${string}:${string}`;
598
+ unit: string;
603
599
  amount: string;
604
600
  fungible: true;
605
601
  } | {
@@ -607,18 +603,26 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
607
603
  fungible: false;
608
604
  };
609
605
  }[];
606
+ events: {
607
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
608
+ timestamp: number | null;
609
+ }[];
610
610
  details?: {
611
611
  origin?: string;
612
612
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
613
613
  };
614
614
  }[], import("@metamask/superstruct").Struct<{
615
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
615
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
616
616
  id: string;
617
+ account: string;
618
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
619
+ timestamp: number | null;
620
+ chain: `${string}:${string}`;
617
621
  from: {
618
622
  address: string;
619
623
  asset: {
620
- unit: string;
621
624
  type: `${string}:${string}/${string}:${string}`;
625
+ unit: string;
622
626
  amount: string;
623
627
  fungible: true;
624
628
  } | {
@@ -626,19 +630,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
626
630
  fungible: false;
627
631
  } | null;
628
632
  }[];
629
- events: {
630
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
631
- timestamp: number | null;
632
- }[];
633
- chain: `${string}:${string}`;
634
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
635
- account: string;
636
- timestamp: number | null;
637
633
  to: {
638
634
  address: string;
639
635
  asset: {
640
- unit: string;
641
636
  type: `${string}:${string}/${string}:${string}`;
637
+ unit: string;
642
638
  amount: string;
643
639
  fungible: true;
644
640
  } | {
@@ -649,8 +645,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
649
645
  fees: {
650
646
  type: "base" | "priority";
651
647
  asset: {
652
- unit: string;
653
648
  type: `${string}:${string}/${string}:${string}`;
649
+ unit: string;
654
650
  amount: string;
655
651
  fungible: true;
656
652
  } | {
@@ -658,6 +654,10 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
658
654
  fungible: false;
659
655
  };
660
656
  }[];
657
+ events: {
658
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
659
+ timestamp: number | null;
660
+ }[];
661
661
  details?: {
662
662
  origin?: string;
663
663
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -673,8 +673,7 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
673
673
  failed: "failed";
674
674
  }>;
675
675
  timestamp: import("@metamask/superstruct").Struct<number | null, null>;
676
- type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve", {
677
- unknown: "unknown";
676
+ type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown", {
678
677
  send: "send";
679
678
  receive: "receive";
680
679
  swap: "swap";
@@ -683,12 +682,13 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
683
682
  "stake:deposit": "stake:deposit";
684
683
  "stake:withdraw": "stake:withdraw";
685
684
  "token:approve": "token:approve";
685
+ unknown: "unknown";
686
686
  }>;
687
687
  from: import("@metamask/superstruct").Struct<{
688
688
  address: string;
689
689
  asset: {
690
- unit: string;
691
690
  type: `${string}:${string}/${string}:${string}`;
691
+ unit: string;
692
692
  amount: string;
693
693
  fungible: true;
694
694
  } | {
@@ -698,8 +698,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
698
698
  }[], import("@metamask/superstruct").Struct<{
699
699
  address: string;
700
700
  asset: {
701
- unit: string;
702
701
  type: `${string}:${string}/${string}:${string}`;
702
+ unit: string;
703
703
  amount: string;
704
704
  fungible: true;
705
705
  } | {
@@ -709,8 +709,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
709
709
  }, {
710
710
  address: import("@metamask/superstruct").Struct<string, null>;
711
711
  asset: import("@metamask/superstruct").Struct<{
712
- unit: string;
713
712
  type: `${string}:${string}/${string}:${string}`;
713
+ unit: string;
714
714
  amount: string;
715
715
  fungible: true;
716
716
  } | {
@@ -721,8 +721,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
721
721
  to: import("@metamask/superstruct").Struct<{
722
722
  address: string;
723
723
  asset: {
724
- unit: string;
725
724
  type: `${string}:${string}/${string}:${string}`;
725
+ unit: string;
726
726
  amount: string;
727
727
  fungible: true;
728
728
  } | {
@@ -732,8 +732,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
732
732
  }[], import("@metamask/superstruct").Struct<{
733
733
  address: string;
734
734
  asset: {
735
- unit: string;
736
735
  type: `${string}:${string}/${string}:${string}`;
736
+ unit: string;
737
737
  amount: string;
738
738
  fungible: true;
739
739
  } | {
@@ -743,8 +743,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
743
743
  }, {
744
744
  address: import("@metamask/superstruct").Struct<string, null>;
745
745
  asset: import("@metamask/superstruct").Struct<{
746
- unit: string;
747
746
  type: `${string}:${string}/${string}:${string}`;
747
+ unit: string;
748
748
  amount: string;
749
749
  fungible: true;
750
750
  } | {
@@ -755,8 +755,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
755
755
  fees: import("@metamask/superstruct").Struct<{
756
756
  type: "base" | "priority";
757
757
  asset: {
758
- unit: string;
759
758
  type: `${string}:${string}/${string}:${string}`;
759
+ unit: string;
760
760
  amount: string;
761
761
  fungible: true;
762
762
  } | {
@@ -766,8 +766,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
766
766
  }[], import("@metamask/superstruct").Struct<{
767
767
  type: "base" | "priority";
768
768
  asset: {
769
- unit: string;
770
769
  type: `${string}:${string}/${string}:${string}`;
770
+ unit: string;
771
771
  amount: string;
772
772
  fungible: true;
773
773
  } | {
@@ -780,8 +780,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
780
780
  priority: "priority";
781
781
  }>;
782
782
  asset: import("@metamask/superstruct").Struct<{
783
- unit: string;
784
783
  type: `${string}:${string}/${string}:${string}`;
784
+ unit: string;
785
785
  amount: string;
786
786
  fungible: true;
787
787
  } | {
@@ -820,12 +820,12 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
820
820
  }>;
821
821
  export type ListAccountTransactionsResponse = Infer<typeof ListAccountTransactionsResponseStruct>;
822
822
  export declare const ListAccountAssetsRequestStruct: import("@metamask/superstruct").Struct<{
823
- method: "keyring_listAccountAssets";
824
823
  id: string | number | null;
825
- jsonrpc: "2.0";
824
+ method: "keyring_listAccountAssets";
826
825
  params: {
827
826
  id: string;
828
827
  };
828
+ jsonrpc: "2.0";
829
829
  }, {
830
830
  method: import("@metamask/superstruct").Struct<"keyring_listAccountAssets", "keyring_listAccountAssets">;
831
831
  params: import("@metamask/superstruct").Struct<{
@@ -837,16 +837,16 @@ export declare const ListAccountAssetsRequestStruct: import("@metamask/superstru
837
837
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
838
838
  }>;
839
839
  export type ListAccountAssetsRequest = Infer<typeof ListAccountAssetsRequestStruct>;
840
- export declare const ListAccountAssetsResponseStruct: import("@metamask/superstruct").Struct<(`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[], import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`, null>>;
840
+ export declare const ListAccountAssetsResponseStruct: import("@metamask/superstruct").Struct<(`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`)[], import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}/${string}` | `${string}:${string}/${string}:${string}`, null>>;
841
841
  export type ListAccountAssetsResponse = Infer<typeof ListAccountAssetsResponseStruct>;
842
842
  export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
843
- method: "keyring_getAccountBalances";
844
843
  id: string | number | null;
845
- jsonrpc: "2.0";
844
+ method: "keyring_getAccountBalances";
846
845
  params: {
847
846
  id: string;
848
847
  assets: `${string}:${string}/${string}:${string}`[];
849
848
  };
849
+ jsonrpc: "2.0";
850
850
  }, {
851
851
  method: import("@metamask/superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
852
852
  params: import("@metamask/superstruct").Struct<{
@@ -866,40 +866,40 @@ export declare const GetAccountBalancesResponseStruct: import("@metamask/superst
866
866
  }>, null>;
867
867
  export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
868
868
  export declare const ResolveAccountAddressRequestStruct: import("@metamask/superstruct").Struct<{
869
- method: "keyring_resolveAccountAddress";
870
869
  id: string | number | null;
871
- jsonrpc: "2.0";
870
+ method: "keyring_resolveAccountAddress";
872
871
  params: {
872
+ scope: `${string}:${string}`;
873
873
  request: {
874
- method: string;
875
- id: string | number | null;
876
874
  jsonrpc: "2.0";
875
+ id: string | number | null;
876
+ method: string;
877
877
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
878
878
  };
879
- scope: `${string}:${string}`;
880
879
  };
880
+ jsonrpc: "2.0";
881
881
  }, {
882
882
  method: import("@metamask/superstruct").Struct<"keyring_resolveAccountAddress", "keyring_resolveAccountAddress">;
883
883
  params: import("@metamask/superstruct").Struct<{
884
+ scope: `${string}:${string}`;
884
885
  request: {
885
- method: string;
886
- id: string | number | null;
887
886
  jsonrpc: "2.0";
887
+ id: string | number | null;
888
+ method: string;
888
889
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
889
890
  };
890
- scope: `${string}:${string}`;
891
891
  }, {
892
892
  scope: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
893
893
  request: import("@metamask/superstruct").Struct<{
894
- method: string;
895
- id: string | number | null;
896
894
  jsonrpc: "2.0";
895
+ id: string | number | null;
896
+ method: string;
897
897
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
898
898
  }, {
899
899
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
900
900
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
901
901
  method: import("@metamask/superstruct").Struct<string, null>;
902
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
902
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
903
903
  }>;
904
904
  }>;
905
905
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -913,13 +913,13 @@ export declare const ResolveAccountAddressResponseStruct: import("@metamask/supe
913
913
  }>;
914
914
  export type ResolveAccountAddressResponse = Infer<typeof ResolveAccountAddressResponseStruct>;
915
915
  export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
916
- method: "keyring_filterAccountChains";
917
916
  id: string | number | null;
918
- jsonrpc: "2.0";
917
+ method: "keyring_filterAccountChains";
919
918
  params: {
920
919
  id: string;
921
920
  chains: string[];
922
921
  };
922
+ jsonrpc: "2.0";
923
923
  }, {
924
924
  method: import("@metamask/superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
925
925
  params: import("@metamask/superstruct").Struct<{
@@ -936,13 +936,14 @@ export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>
936
936
  export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
937
937
  export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
938
938
  export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
939
- method: "keyring_updateAccount";
940
939
  id: string | number | null;
941
- jsonrpc: "2.0";
940
+ method: "keyring_updateAccount";
942
941
  params: {
943
942
  account: {
944
943
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
945
944
  id: string;
945
+ address: string;
946
+ scopes: `${string}:${string}`[];
946
947
  options: Record<string, import("@metamask/utils").Json> & {
947
948
  entropy?: {
948
949
  type: "mnemonic";
@@ -956,17 +957,18 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
956
957
  };
957
958
  exportable?: boolean;
958
959
  };
959
- address: string;
960
- scopes: `${string}:${string}`[];
961
960
  methods: string[];
962
961
  };
963
962
  };
963
+ jsonrpc: "2.0";
964
964
  }, {
965
965
  method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
966
966
  params: import("@metamask/superstruct").Struct<{
967
967
  account: {
968
968
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
969
969
  id: string;
970
+ address: string;
971
+ scopes: `${string}:${string}`[];
970
972
  options: Record<string, import("@metamask/utils").Json> & {
971
973
  entropy?: {
972
974
  type: "mnemonic";
@@ -980,14 +982,14 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
980
982
  };
981
983
  exportable?: boolean;
982
984
  };
983
- address: string;
984
- scopes: `${string}:${string}`[];
985
985
  methods: string[];
986
986
  };
987
987
  }, {
988
988
  account: import("@metamask/superstruct").Struct<{
989
989
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
990
990
  id: string;
991
+ address: string;
992
+ scopes: `${string}:${string}`[];
991
993
  options: Record<string, import("@metamask/utils").Json> & {
992
994
  entropy?: {
993
995
  type: "mnemonic";
@@ -1001,8 +1003,6 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
1001
1003
  };
1002
1004
  exportable?: boolean;
1003
1005
  };
1004
- address: string;
1005
- scopes: `${string}:${string}`[];
1006
1006
  methods: string[];
1007
1007
  }, {
1008
1008
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -1043,12 +1043,12 @@ export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
1043
1043
  export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1044
1044
  export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
1045
1045
  export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
1046
- method: "keyring_deleteAccount";
1047
1046
  id: string | number | null;
1048
- jsonrpc: "2.0";
1047
+ method: "keyring_deleteAccount";
1049
1048
  params: {
1050
1049
  id: string;
1051
1050
  };
1051
+ jsonrpc: "2.0";
1052
1052
  }, {
1053
1053
  method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
1054
1054
  params: import("@metamask/superstruct").Struct<{
@@ -1063,12 +1063,12 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
1063
1063
  export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1064
1064
  export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
1065
1065
  export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
1066
- method: "keyring_exportAccount";
1067
1066
  id: string | number | null;
1068
- jsonrpc: "2.0";
1067
+ method: "keyring_exportAccount";
1069
1068
  params: {
1070
1069
  id: string;
1071
1070
  };
1071
+ jsonrpc: "2.0";
1072
1072
  }, {
1073
1073
  method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
1074
1074
  params: import("@metamask/superstruct").Struct<{
@@ -1083,8 +1083,8 @@ export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
1083
1083
  export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
1084
1084
  export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
1085
1085
  export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
1086
- method: "keyring_listRequests";
1087
1086
  id: string | number | null;
1087
+ method: "keyring_listRequests";
1088
1088
  jsonrpc: "2.0";
1089
1089
  }, {
1090
1090
  method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
@@ -1094,22 +1094,22 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
1094
1094
  export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
1095
1095
  export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
1096
1096
  id: string;
1097
+ scope: string;
1098
+ account: string;
1097
1099
  origin: string;
1098
1100
  request: {
1099
1101
  method: string;
1100
1102
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1101
1103
  };
1102
- scope: string;
1103
- account: string;
1104
1104
  }[], import("@metamask/superstruct").Struct<{
1105
1105
  id: string;
1106
+ scope: string;
1107
+ account: string;
1106
1108
  origin: string;
1107
1109
  request: {
1108
1110
  method: string;
1109
1111
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1110
1112
  };
1111
- scope: string;
1112
- account: string;
1113
1113
  }, {
1114
1114
  id: import("@metamask/superstruct").Struct<string, null>;
1115
1115
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1120,17 +1120,17 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
1120
1120
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1121
1121
  }, {
1122
1122
  method: import("@metamask/superstruct").Struct<string, null>;
1123
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1123
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1124
1124
  }>;
1125
1125
  }>>;
1126
1126
  export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
1127
1127
  export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
1128
- method: "keyring_getRequest";
1129
1128
  id: string | number | null;
1130
- jsonrpc: "2.0";
1129
+ method: "keyring_getRequest";
1131
1130
  params: {
1132
1131
  id: string;
1133
1132
  };
1133
+ jsonrpc: "2.0";
1134
1134
  }, {
1135
1135
  method: import("@metamask/superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
1136
1136
  params: import("@metamask/superstruct").Struct<{
@@ -1144,13 +1144,13 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
1144
1144
  export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
1145
1145
  export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
1146
1146
  id: string;
1147
+ scope: string;
1148
+ account: string;
1147
1149
  origin: string;
1148
1150
  request: {
1149
1151
  method: string;
1150
1152
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1151
1153
  };
1152
- scope: string;
1153
- account: string;
1154
1154
  }, {
1155
1155
  id: import("@metamask/superstruct").Struct<string, null>;
1156
1156
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1161,35 +1161,35 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
1161
1161
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1162
1162
  }, {
1163
1163
  method: import("@metamask/superstruct").Struct<string, null>;
1164
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1164
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1165
1165
  }>;
1166
1166
  }>;
1167
1167
  export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
1168
1168
  export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
1169
- method: "keyring_submitRequest";
1170
1169
  id: string | number | null;
1171
- jsonrpc: "2.0";
1170
+ method: "keyring_submitRequest";
1172
1171
  params: {
1173
1172
  id: string;
1173
+ scope: string;
1174
+ account: string;
1174
1175
  origin: string;
1175
1176
  request: {
1176
1177
  method: string;
1177
1178
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1178
1179
  };
1179
- scope: string;
1180
- account: string;
1181
1180
  };
1181
+ jsonrpc: "2.0";
1182
1182
  }, {
1183
1183
  method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
1184
1184
  params: import("@metamask/superstruct").Struct<{
1185
1185
  id: string;
1186
+ scope: string;
1187
+ account: string;
1186
1188
  origin: string;
1187
1189
  request: {
1188
1190
  method: string;
1189
1191
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1190
1192
  };
1191
- scope: string;
1192
- account: string;
1193
1193
  }, {
1194
1194
  id: import("@metamask/superstruct").Struct<string, null>;
1195
1195
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1200,7 +1200,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
1200
1200
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1201
1201
  }, {
1202
1202
  method: import("@metamask/superstruct").Struct<string, null>;
1203
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1203
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1204
1204
  }>;
1205
1205
  }>;
1206
1206
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -1214,23 +1214,23 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
1214
1214
  url?: string;
1215
1215
  };
1216
1216
  } | {
1217
- result: import("@metamask/utils").Json;
1218
1217
  pending: false;
1218
+ result: import("@metamask/utils").Json;
1219
1219
  }, null>;
1220
1220
  export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
1221
1221
  export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
1222
- method: "keyring_approveRequest";
1223
1222
  id: string | number | null;
1224
- jsonrpc: "2.0";
1223
+ method: "keyring_approveRequest";
1225
1224
  params: {
1226
- data: Record<string, import("@metamask/utils").Json>;
1227
1225
  id: string;
1226
+ data: Record<string, import("@metamask/utils").Json>;
1228
1227
  };
1228
+ jsonrpc: "2.0";
1229
1229
  }, {
1230
1230
  method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
1231
1231
  params: import("@metamask/superstruct").Struct<{
1232
- data: Record<string, import("@metamask/utils").Json>;
1233
1232
  id: string;
1233
+ data: Record<string, import("@metamask/utils").Json>;
1234
1234
  }, {
1235
1235
  id: import("@metamask/superstruct").Struct<string, null>;
1236
1236
  data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
@@ -1242,12 +1242,12 @@ export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
1242
1242
  export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1243
1243
  export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
1244
1244
  export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
1245
- method: "keyring_rejectRequest";
1246
1245
  id: string | number | null;
1247
- jsonrpc: "2.0";
1246
+ method: "keyring_rejectRequest";
1248
1247
  params: {
1249
1248
  id: string;
1250
1249
  };
1250
+ jsonrpc: "2.0";
1251
1251
  }, {
1252
1252
  method: import("@metamask/superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
1253
1253
  params: import("@metamask/superstruct").Struct<{