@metamask-previews/keyring-internal-api 10.0.0-cd75414 → 10.0.1-8ff7ba2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.cts CHANGED
@@ -8,12 +8,12 @@ export declare const InternalAccountMetadataStruct: Struct<{
8
8
  keyring: {
9
9
  type: string;
10
10
  };
11
- nameLastUpdatedAt?: number;
12
11
  snap?: {
12
+ name: string;
13
13
  id: string;
14
14
  enabled: boolean;
15
- name: string;
16
15
  };
16
+ nameLastUpdatedAt?: number;
17
17
  lastSelected?: number;
18
18
  };
19
19
  }, {
@@ -23,20 +23,20 @@ export declare const InternalAccountMetadataStruct: Struct<{
23
23
  keyring: {
24
24
  type: string;
25
25
  };
26
- nameLastUpdatedAt?: number;
27
26
  snap?: {
27
+ name: string;
28
28
  id: string;
29
29
  enabled: boolean;
30
- name: string;
31
30
  };
31
+ nameLastUpdatedAt?: number;
32
32
  lastSelected?: number;
33
33
  }, {
34
34
  name: Struct<string, null>;
35
35
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
36
36
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
37
+ name: string;
37
38
  id: string;
38
39
  enabled: boolean;
39
- name: string;
40
40
  }, {
41
41
  id: Struct<string, null>;
42
42
  enabled: Struct<boolean, null>;
@@ -52,38 +52,38 @@ export declare const InternalAccountMetadataStruct: Struct<{
52
52
  }>;
53
53
  }>;
54
54
  export declare const InternalEthEoaAccountStruct: Struct<{
55
+ type: "eip155:eoa";
55
56
  id: string;
57
+ options: Record<string, import("@metamask/utils").Json> & {
58
+ entropy?: {
59
+ type: "mnemonic";
60
+ id: string;
61
+ derivationPath: string;
62
+ groupIndex: number;
63
+ } | {
64
+ type: "private-key";
65
+ } | {
66
+ type: "custom";
67
+ };
68
+ exportable?: boolean;
69
+ };
56
70
  metadata: {
57
71
  name: string;
58
72
  importTime: number;
59
73
  keyring: {
60
74
  type: string;
61
75
  };
62
- nameLastUpdatedAt?: number;
63
76
  snap?: {
77
+ name: string;
64
78
  id: string;
65
79
  enabled: boolean;
66
- name: string;
67
80
  };
81
+ nameLastUpdatedAt?: number;
68
82
  lastSelected?: number;
69
83
  };
70
- type: "eip155:eoa";
71
84
  address: string;
72
85
  scopes: import("@metamask/keyring-api").EthScope.Eoa[];
73
86
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
74
- options: Record<string, import("@metamask/utils").Json> & {
75
- entropy?: {
76
- type: "mnemonic";
77
- id: string;
78
- derivationPath: string;
79
- groupIndex: number;
80
- } | {
81
- type: "private-key";
82
- } | {
83
- type: "custom";
84
- };
85
- exportable?: boolean;
86
- };
87
87
  }, {
88
88
  metadata: Struct<{
89
89
  name: string;
@@ -91,20 +91,20 @@ export declare const InternalEthEoaAccountStruct: Struct<{
91
91
  keyring: {
92
92
  type: string;
93
93
  };
94
- nameLastUpdatedAt?: number;
95
94
  snap?: {
95
+ name: string;
96
96
  id: string;
97
97
  enabled: boolean;
98
- name: string;
99
98
  };
99
+ nameLastUpdatedAt?: number;
100
100
  lastSelected?: number;
101
101
  }, {
102
102
  name: Struct<string, null>;
103
103
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
104
104
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
105
+ name: string;
105
106
  id: string;
106
107
  enabled: boolean;
107
- name: string;
108
108
  }, {
109
109
  id: Struct<string, null>;
110
110
  enabled: Struct<boolean, null>;
@@ -145,38 +145,38 @@ export declare const InternalEthEoaAccountStruct: Struct<{
145
145
  }, null>;
146
146
  }>;
147
147
  export declare const InternalEthErc4337AccountStruct: Struct<{
148
+ type: "eip155:erc4337";
148
149
  id: string;
150
+ options: Record<string, import("@metamask/utils").Json> & {
151
+ entropy?: {
152
+ type: "mnemonic";
153
+ id: string;
154
+ derivationPath: string;
155
+ groupIndex: number;
156
+ } | {
157
+ type: "private-key";
158
+ } | {
159
+ type: "custom";
160
+ };
161
+ exportable?: boolean;
162
+ };
149
163
  metadata: {
150
164
  name: string;
151
165
  importTime: number;
152
166
  keyring: {
153
167
  type: string;
154
168
  };
155
- nameLastUpdatedAt?: number;
156
169
  snap?: {
170
+ name: string;
157
171
  id: string;
158
172
  enabled: boolean;
159
- name: string;
160
173
  };
174
+ nameLastUpdatedAt?: number;
161
175
  lastSelected?: number;
162
176
  };
163
- type: "eip155:erc4337";
164
177
  address: string;
165
178
  scopes: `${string}:${string}`[];
166
179
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
167
- options: Record<string, import("@metamask/utils").Json> & {
168
- entropy?: {
169
- type: "mnemonic";
170
- id: string;
171
- derivationPath: string;
172
- groupIndex: number;
173
- } | {
174
- type: "private-key";
175
- } | {
176
- type: "custom";
177
- };
178
- exportable?: boolean;
179
- };
180
180
  }, {
181
181
  metadata: Struct<{
182
182
  name: string;
@@ -184,20 +184,20 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
184
184
  keyring: {
185
185
  type: string;
186
186
  };
187
- nameLastUpdatedAt?: number;
188
187
  snap?: {
188
+ name: string;
189
189
  id: string;
190
190
  enabled: boolean;
191
- name: string;
192
191
  };
192
+ nameLastUpdatedAt?: number;
193
193
  lastSelected?: number;
194
194
  }, {
195
195
  name: Struct<string, null>;
196
196
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
197
197
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
198
+ name: string;
198
199
  id: string;
199
200
  enabled: boolean;
200
- name: string;
201
201
  }, {
202
202
  id: Struct<string, null>;
203
203
  enabled: Struct<boolean, null>;
@@ -240,38 +240,38 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
240
240
  }, null>;
241
241
  }>;
242
242
  export declare const InternalBtcP2pkhAccountStruct: Struct<{
243
+ type: "bip122:p2pkh";
243
244
  id: string;
245
+ options: Record<string, import("@metamask/utils").Json> & {
246
+ entropy?: {
247
+ type: "mnemonic";
248
+ id: string;
249
+ derivationPath: string;
250
+ groupIndex: number;
251
+ } | {
252
+ type: "private-key";
253
+ } | {
254
+ type: "custom";
255
+ };
256
+ exportable?: boolean;
257
+ };
244
258
  metadata: {
245
259
  name: string;
246
260
  importTime: number;
247
261
  keyring: {
248
262
  type: string;
249
263
  };
250
- nameLastUpdatedAt?: number;
251
264
  snap?: {
265
+ name: string;
252
266
  id: string;
253
267
  enabled: boolean;
254
- name: string;
255
268
  };
269
+ nameLastUpdatedAt?: number;
256
270
  lastSelected?: number;
257
271
  };
258
- type: "bip122:p2pkh";
259
272
  address: string;
260
273
  scopes: `${string}:${string}`[];
261
274
  methods: import("@metamask/keyring-api").BtcMethod[];
262
- options: Record<string, import("@metamask/utils").Json> & {
263
- entropy?: {
264
- type: "mnemonic";
265
- id: string;
266
- derivationPath: string;
267
- groupIndex: number;
268
- } | {
269
- type: "private-key";
270
- } | {
271
- type: "custom";
272
- };
273
- exportable?: boolean;
274
- };
275
275
  }, {
276
276
  metadata: Struct<{
277
277
  name: string;
@@ -279,20 +279,20 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
279
279
  keyring: {
280
280
  type: string;
281
281
  };
282
- nameLastUpdatedAt?: number;
283
282
  snap?: {
283
+ name: string;
284
284
  id: string;
285
285
  enabled: boolean;
286
- name: string;
287
286
  };
287
+ nameLastUpdatedAt?: number;
288
288
  lastSelected?: number;
289
289
  }, {
290
290
  name: Struct<string, null>;
291
291
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
292
292
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
293
+ name: string;
293
294
  id: string;
294
295
  enabled: boolean;
295
- name: string;
296
296
  }, {
297
297
  id: Struct<string, null>;
298
298
  enabled: Struct<boolean, null>;
@@ -336,38 +336,38 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
336
336
  }, null>;
337
337
  }>;
338
338
  export declare const InternalBtcP2shAccountStruct: Struct<{
339
+ type: "bip122:p2sh";
339
340
  id: string;
341
+ options: Record<string, import("@metamask/utils").Json> & {
342
+ entropy?: {
343
+ type: "mnemonic";
344
+ id: string;
345
+ derivationPath: string;
346
+ groupIndex: number;
347
+ } | {
348
+ type: "private-key";
349
+ } | {
350
+ type: "custom";
351
+ };
352
+ exportable?: boolean;
353
+ };
340
354
  metadata: {
341
355
  name: string;
342
356
  importTime: number;
343
357
  keyring: {
344
358
  type: string;
345
359
  };
346
- nameLastUpdatedAt?: number;
347
360
  snap?: {
361
+ name: string;
348
362
  id: string;
349
363
  enabled: boolean;
350
- name: string;
351
364
  };
365
+ nameLastUpdatedAt?: number;
352
366
  lastSelected?: number;
353
367
  };
354
- type: "bip122:p2sh";
355
368
  address: string;
356
369
  scopes: `${string}:${string}`[];
357
370
  methods: import("@metamask/keyring-api").BtcMethod[];
358
- options: Record<string, import("@metamask/utils").Json> & {
359
- entropy?: {
360
- type: "mnemonic";
361
- id: string;
362
- derivationPath: string;
363
- groupIndex: number;
364
- } | {
365
- type: "private-key";
366
- } | {
367
- type: "custom";
368
- };
369
- exportable?: boolean;
370
- };
371
371
  }, {
372
372
  metadata: Struct<{
373
373
  name: string;
@@ -375,20 +375,20 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
375
375
  keyring: {
376
376
  type: string;
377
377
  };
378
- nameLastUpdatedAt?: number;
379
378
  snap?: {
379
+ name: string;
380
380
  id: string;
381
381
  enabled: boolean;
382
- name: string;
383
382
  };
383
+ nameLastUpdatedAt?: number;
384
384
  lastSelected?: number;
385
385
  }, {
386
386
  name: Struct<string, null>;
387
387
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
388
388
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
389
+ name: string;
389
390
  id: string;
390
391
  enabled: boolean;
391
- name: string;
392
392
  }, {
393
393
  id: Struct<string, null>;
394
394
  enabled: Struct<boolean, null>;
@@ -432,38 +432,38 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
432
432
  }, null>;
433
433
  }>;
434
434
  export declare const InternalBtcP2wpkhAccountStruct: Struct<{
435
+ type: "bip122:p2wpkh";
435
436
  id: string;
437
+ options: Record<string, import("@metamask/utils").Json> & {
438
+ entropy?: {
439
+ type: "mnemonic";
440
+ id: string;
441
+ derivationPath: string;
442
+ groupIndex: number;
443
+ } | {
444
+ type: "private-key";
445
+ } | {
446
+ type: "custom";
447
+ };
448
+ exportable?: boolean;
449
+ };
436
450
  metadata: {
437
451
  name: string;
438
452
  importTime: number;
439
453
  keyring: {
440
454
  type: string;
441
455
  };
442
- nameLastUpdatedAt?: number;
443
456
  snap?: {
457
+ name: string;
444
458
  id: string;
445
459
  enabled: boolean;
446
- name: string;
447
460
  };
461
+ nameLastUpdatedAt?: number;
448
462
  lastSelected?: number;
449
463
  };
450
- type: "bip122:p2wpkh";
451
464
  address: string;
452
465
  scopes: `${string}:${string}`[];
453
466
  methods: import("@metamask/keyring-api").BtcMethod[];
454
- options: Record<string, import("@metamask/utils").Json> & {
455
- entropy?: {
456
- type: "mnemonic";
457
- id: string;
458
- derivationPath: string;
459
- groupIndex: number;
460
- } | {
461
- type: "private-key";
462
- } | {
463
- type: "custom";
464
- };
465
- exportable?: boolean;
466
- };
467
467
  }, {
468
468
  metadata: Struct<{
469
469
  name: string;
@@ -471,20 +471,20 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
471
471
  keyring: {
472
472
  type: string;
473
473
  };
474
- nameLastUpdatedAt?: number;
475
474
  snap?: {
475
+ name: string;
476
476
  id: string;
477
477
  enabled: boolean;
478
- name: string;
479
478
  };
479
+ nameLastUpdatedAt?: number;
480
480
  lastSelected?: number;
481
481
  }, {
482
482
  name: Struct<string, null>;
483
483
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
484
484
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
485
+ name: string;
485
486
  id: string;
486
487
  enabled: boolean;
487
- name: string;
488
488
  }, {
489
489
  id: Struct<string, null>;
490
490
  enabled: Struct<boolean, null>;
@@ -528,38 +528,38 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
528
528
  }, null>;
529
529
  }>;
530
530
  export declare const InternalBtcP2trAccountStruct: Struct<{
531
+ type: "bip122:p2tr";
531
532
  id: string;
533
+ options: Record<string, import("@metamask/utils").Json> & {
534
+ entropy?: {
535
+ type: "mnemonic";
536
+ id: string;
537
+ derivationPath: string;
538
+ groupIndex: number;
539
+ } | {
540
+ type: "private-key";
541
+ } | {
542
+ type: "custom";
543
+ };
544
+ exportable?: boolean;
545
+ };
532
546
  metadata: {
533
547
  name: string;
534
548
  importTime: number;
535
549
  keyring: {
536
550
  type: string;
537
551
  };
538
- nameLastUpdatedAt?: number;
539
552
  snap?: {
553
+ name: string;
540
554
  id: string;
541
555
  enabled: boolean;
542
- name: string;
543
556
  };
557
+ nameLastUpdatedAt?: number;
544
558
  lastSelected?: number;
545
559
  };
546
- type: "bip122:p2tr";
547
560
  address: string;
548
561
  scopes: `${string}:${string}`[];
549
562
  methods: import("@metamask/keyring-api").BtcMethod[];
550
- options: Record<string, import("@metamask/utils").Json> & {
551
- entropy?: {
552
- type: "mnemonic";
553
- id: string;
554
- derivationPath: string;
555
- groupIndex: number;
556
- } | {
557
- type: "private-key";
558
- } | {
559
- type: "custom";
560
- };
561
- exportable?: boolean;
562
- };
563
563
  }, {
564
564
  metadata: Struct<{
565
565
  name: string;
@@ -567,20 +567,20 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
567
567
  keyring: {
568
568
  type: string;
569
569
  };
570
- nameLastUpdatedAt?: number;
571
570
  snap?: {
571
+ name: string;
572
572
  id: string;
573
573
  enabled: boolean;
574
- name: string;
575
574
  };
575
+ nameLastUpdatedAt?: number;
576
576
  lastSelected?: number;
577
577
  }, {
578
578
  name: Struct<string, null>;
579
579
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
580
580
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
581
+ name: string;
581
582
  id: string;
582
583
  enabled: boolean;
583
- name: string;
584
584
  }, {
585
585
  id: Struct<string, null>;
586
586
  enabled: Struct<boolean, null>;
@@ -624,38 +624,38 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
624
624
  }, null>;
625
625
  }>;
626
626
  export declare const InternalSolDataAccountStruct: Struct<{
627
+ type: "solana:data-account";
627
628
  id: string;
629
+ options: Record<string, import("@metamask/utils").Json> & {
630
+ entropy?: {
631
+ type: "mnemonic";
632
+ id: string;
633
+ derivationPath: string;
634
+ groupIndex: number;
635
+ } | {
636
+ type: "private-key";
637
+ } | {
638
+ type: "custom";
639
+ };
640
+ exportable?: boolean;
641
+ };
628
642
  metadata: {
629
643
  name: string;
630
644
  importTime: number;
631
645
  keyring: {
632
646
  type: string;
633
647
  };
634
- nameLastUpdatedAt?: number;
635
648
  snap?: {
649
+ name: string;
636
650
  id: string;
637
651
  enabled: boolean;
638
- name: string;
639
652
  };
653
+ nameLastUpdatedAt?: number;
640
654
  lastSelected?: number;
641
655
  };
642
- type: "solana:data-account";
643
656
  address: string;
644
657
  scopes: `${string}:${string}`[];
645
658
  methods: import("@metamask/keyring-api").SolMethod[];
646
- options: Record<string, import("@metamask/utils").Json> & {
647
- entropy?: {
648
- type: "mnemonic";
649
- id: string;
650
- derivationPath: string;
651
- groupIndex: number;
652
- } | {
653
- type: "private-key";
654
- } | {
655
- type: "custom";
656
- };
657
- exportable?: boolean;
658
- };
659
659
  }, {
660
660
  metadata: Struct<{
661
661
  name: string;
@@ -663,20 +663,20 @@ export declare const InternalSolDataAccountStruct: Struct<{
663
663
  keyring: {
664
664
  type: string;
665
665
  };
666
- nameLastUpdatedAt?: number;
667
666
  snap?: {
667
+ name: string;
668
668
  id: string;
669
669
  enabled: boolean;
670
- name: string;
671
670
  };
671
+ nameLastUpdatedAt?: number;
672
672
  lastSelected?: number;
673
673
  }, {
674
674
  name: Struct<string, null>;
675
675
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
676
676
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
677
+ name: string;
677
678
  id: string;
678
679
  enabled: boolean;
679
- name: string;
680
680
  }, {
681
681
  id: Struct<string, null>;
682
682
  enabled: Struct<boolean, null>;
@@ -716,38 +716,38 @@ export declare const InternalSolDataAccountStruct: Struct<{
716
716
  }, null>;
717
717
  }>;
718
718
  export declare const InternalTrxEoaAccountStruct: Struct<{
719
+ type: "tron:eoa";
719
720
  id: string;
721
+ options: Record<string, import("@metamask/utils").Json> & {
722
+ entropy?: {
723
+ type: "mnemonic";
724
+ id: string;
725
+ derivationPath: string;
726
+ groupIndex: number;
727
+ } | {
728
+ type: "private-key";
729
+ } | {
730
+ type: "custom";
731
+ };
732
+ exportable?: boolean;
733
+ };
720
734
  metadata: {
721
735
  name: string;
722
736
  importTime: number;
723
737
  keyring: {
724
738
  type: string;
725
739
  };
726
- nameLastUpdatedAt?: number;
727
740
  snap?: {
741
+ name: string;
728
742
  id: string;
729
743
  enabled: boolean;
730
- name: string;
731
744
  };
745
+ nameLastUpdatedAt?: number;
732
746
  lastSelected?: number;
733
747
  };
734
- type: "tron:eoa";
735
748
  address: string;
736
749
  scopes: `${string}:${string}`[];
737
750
  methods: import("@metamask/keyring-api").TrxMethod[];
738
- options: Record<string, import("@metamask/utils").Json> & {
739
- entropy?: {
740
- type: "mnemonic";
741
- id: string;
742
- derivationPath: string;
743
- groupIndex: number;
744
- } | {
745
- type: "private-key";
746
- } | {
747
- type: "custom";
748
- };
749
- exportable?: boolean;
750
- };
751
751
  }, {
752
752
  metadata: Struct<{
753
753
  name: string;
@@ -755,20 +755,20 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
755
755
  keyring: {
756
756
  type: string;
757
757
  };
758
- nameLastUpdatedAt?: number;
759
758
  snap?: {
759
+ name: string;
760
760
  id: string;
761
761
  enabled: boolean;
762
- name: string;
763
762
  };
763
+ nameLastUpdatedAt?: number;
764
764
  lastSelected?: number;
765
765
  }, {
766
766
  name: Struct<string, null>;
767
767
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
768
768
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
769
+ name: string;
769
770
  id: string;
770
771
  enabled: boolean;
771
- name: string;
772
772
  }, {
773
773
  id: Struct<string, null>;
774
774
  enabled: Struct<boolean, null>;
@@ -817,38 +817,38 @@ export type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;
817
817
  export declare const InternalAccountStructs: Record<string, Struct<InternalEthEoaAccount> | Struct<InternalEthErc4337Account> | Struct<InternalBtcP2pkhAccount> | Struct<InternalBtcP2shAccount> | Struct<InternalBtcP2wpkhAccount> | Struct<InternalBtcP2trAccount> | Struct<InternalSolDataAccount> | Struct<InternalTrxEoaAccount>>;
818
818
  export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Account | InternalBtcP2pkhAccount | InternalBtcP2shAccount | InternalBtcP2wpkhAccount | InternalBtcP2trAccount | InternalSolDataAccount | InternalTrxEoaAccount;
819
819
  export declare const InternalAccountStruct: Struct<{
820
+ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
820
821
  id: string;
822
+ options: Record<string, import("@metamask/utils").Json> & {
823
+ entropy?: {
824
+ type: "mnemonic";
825
+ id: string;
826
+ derivationPath: string;
827
+ groupIndex: number;
828
+ } | {
829
+ type: "private-key";
830
+ } | {
831
+ type: "custom";
832
+ };
833
+ exportable?: boolean;
834
+ };
821
835
  metadata: {
822
836
  name: string;
823
837
  importTime: number;
824
838
  keyring: {
825
839
  type: string;
826
840
  };
827
- nameLastUpdatedAt?: number;
828
841
  snap?: {
842
+ name: string;
829
843
  id: string;
830
844
  enabled: boolean;
831
- name: string;
832
845
  };
846
+ nameLastUpdatedAt?: number;
833
847
  lastSelected?: number;
834
848
  };
835
- type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
836
849
  address: string;
837
850
  scopes: `${string}:${string}`[];
838
851
  methods: string[];
839
- options: Record<string, import("@metamask/utils").Json> & {
840
- entropy?: {
841
- type: "mnemonic";
842
- id: string;
843
- derivationPath: string;
844
- groupIndex: number;
845
- } | {
846
- type: "private-key";
847
- } | {
848
- type: "custom";
849
- };
850
- exportable?: boolean;
851
- };
852
852
  }, {
853
853
  metadata: Struct<{
854
854
  name: string;
@@ -856,20 +856,20 @@ export declare const InternalAccountStruct: Struct<{
856
856
  keyring: {
857
857
  type: string;
858
858
  };
859
- nameLastUpdatedAt?: number;
860
859
  snap?: {
860
+ name: string;
861
861
  id: string;
862
862
  enabled: boolean;
863
- name: string;
864
863
  };
864
+ nameLastUpdatedAt?: number;
865
865
  lastSelected?: number;
866
866
  }, {
867
867
  name: Struct<string, null>;
868
868
  nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
869
869
  snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
870
+ name: string;
870
871
  id: string;
871
872
  enabled: boolean;
872
- name: string;
873
873
  }, {
874
874
  id: Struct<string, null>;
875
875
  enabled: Struct<boolean, null>;