@minip2p/react-native 0.8.2 → 0.9.1

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.
@@ -270,6 +270,37 @@ export declare const RelayReservationInfo: Readonly<{
270
270
  new: (partial: Partial<RelayReservationInfo> & Required<Omit<RelayReservationInfo, "expiresUnixSecs">>) => RelayReservationInfo;
271
271
  defaults: () => Partial<RelayReservationInfo>;
272
272
  }>;
273
+ /**
274
+ * The part of an endpoint's configuration an [`FfiError::InvalidConfig`]
275
+ * names.
276
+ *
277
+ * A configuration mistake is fixed by changing that part; an environment
278
+ * failure (a socket the platform refused) is [`FfiError::Transport`]
279
+ * instead.
280
+ */
281
+ export declare enum ConfigCapability {
282
+ /**
283
+ * Gossipsub settings.
284
+ */
285
+ Gossipsub = 0,
286
+ /**
287
+ * mDNS settings.
288
+ */
289
+ Mdns = 1,
290
+ /**
291
+ * Signed discovery or peer-book settings.
292
+ */
293
+ Discovery = 2,
294
+ /**
295
+ * QUIC or TCP transport settings (limits, TLS, the TCP namespace).
296
+ */
297
+ Transport = 3,
298
+ /**
299
+ * The endpoint's own options: listen addresses, protocols, NAT and
300
+ * relay policy, auto-dial.
301
+ */
302
+ Options = 4
303
+ }
273
304
  export declare enum ConnectTarget_Tags {
274
305
  Peer = "Peer",
275
306
  Addresses = "Addresses"
@@ -563,6 +594,7 @@ export declare const FfiError: Readonly<{
563
594
  };
564
595
  InvalidConfig: {
565
596
  new (inner: {
597
+ capability: ConfigCapability;
566
598
  detail: string;
567
599
  }): {
568
600
  /**
@@ -572,6 +604,7 @@ export declare const FfiError: Readonly<{
572
604
  readonly [uniffiTypeNameSymbol]: "FfiError";
573
605
  readonly tag: FfiError_Tags.InvalidConfig;
574
606
  readonly inner: Readonly<{
607
+ capability: ConfigCapability;
575
608
  detail: string;
576
609
  }>;
577
610
  name: string;
@@ -580,6 +613,7 @@ export declare const FfiError: Readonly<{
580
613
  cause?: unknown;
581
614
  };
582
615
  "new"(inner: {
616
+ capability: ConfigCapability;
583
617
  detail: string;
584
618
  }): {
585
619
  /**
@@ -589,6 +623,7 @@ export declare const FfiError: Readonly<{
589
623
  readonly [uniffiTypeNameSymbol]: "FfiError";
590
624
  readonly tag: FfiError_Tags.InvalidConfig;
591
625
  readonly inner: Readonly<{
626
+ capability: ConfigCapability;
592
627
  detail: string;
593
628
  }>;
594
629
  name: string;
@@ -604,6 +639,7 @@ export declare const FfiError: Readonly<{
604
639
  readonly [uniffiTypeNameSymbol]: "FfiError";
605
640
  readonly tag: FfiError_Tags.InvalidConfig;
606
641
  readonly inner: Readonly<{
642
+ capability: ConfigCapability;
607
643
  detail: string;
608
644
  }>;
609
645
  name: string;
@@ -619,6 +655,7 @@ export declare const FfiError: Readonly<{
619
655
  readonly [uniffiTypeNameSymbol]: "FfiError";
620
656
  readonly tag: FfiError_Tags.InvalidConfig;
621
657
  readonly inner: Readonly<{
658
+ capability: ConfigCapability;
622
659
  detail: string;
623
660
  }>;
624
661
  name: string;
@@ -634,6 +671,7 @@ export declare const FfiError: Readonly<{
634
671
  readonly [uniffiTypeNameSymbol]: "FfiError";
635
672
  readonly tag: FfiError_Tags.InvalidConfig;
636
673
  readonly inner: Readonly<{
674
+ capability: ConfigCapability;
637
675
  detail: string;
638
676
  }>;
639
677
  name: string;
@@ -641,6 +679,7 @@ export declare const FfiError: Readonly<{
641
679
  stack?: string;
642
680
  cause?: unknown;
643
681
  }): Readonly<{
682
+ capability: ConfigCapability;
644
683
  detail: string;
645
684
  }>;
646
685
  isError(error: unknown): error is Error;
@@ -901,6 +940,9 @@ export declare const FfiError: Readonly<{
901
940
  new (inner: {
902
941
  detail: string;
903
942
  }): {
943
+ name: string;
944
+ message: string;
945
+ stack?: string;
904
946
  /**
905
947
  * @private
906
948
  * This field is private and should not be used, use `tag` instead.
@@ -910,14 +952,14 @@ export declare const FfiError: Readonly<{
910
952
  readonly inner: Readonly<{
911
953
  detail: string;
912
954
  }>;
913
- name: string;
914
- message: string;
915
- stack?: string;
916
955
  cause?: unknown;
917
956
  };
918
957
  "new"(inner: {
919
958
  detail: string;
920
959
  }): {
960
+ name: string;
961
+ message: string;
962
+ stack?: string;
921
963
  /**
922
964
  * @private
923
965
  * This field is private and should not be used, use `tag` instead.
@@ -927,12 +969,12 @@ export declare const FfiError: Readonly<{
927
969
  readonly inner: Readonly<{
928
970
  detail: string;
929
971
  }>;
930
- name: string;
931
- message: string;
932
- stack?: string;
933
972
  cause?: unknown;
934
973
  };
935
974
  instanceOf(obj: any): obj is {
975
+ name: string;
976
+ message: string;
977
+ stack?: string;
936
978
  /**
937
979
  * @private
938
980
  * This field is private and should not be used, use `tag` instead.
@@ -942,12 +984,12 @@ export declare const FfiError: Readonly<{
942
984
  readonly inner: Readonly<{
943
985
  detail: string;
944
986
  }>;
945
- name: string;
946
- message: string;
947
- stack?: string;
948
987
  cause?: unknown;
949
988
  };
950
989
  hasInner(obj: any): obj is {
990
+ name: string;
991
+ message: string;
992
+ stack?: string;
951
993
  /**
952
994
  * @private
953
995
  * This field is private and should not be used, use `tag` instead.
@@ -957,12 +999,12 @@ export declare const FfiError: Readonly<{
957
999
  readonly inner: Readonly<{
958
1000
  detail: string;
959
1001
  }>;
960
- name: string;
961
- message: string;
962
- stack?: string;
963
1002
  cause?: unknown;
964
1003
  };
965
1004
  getInner(obj: {
1005
+ name: string;
1006
+ message: string;
1007
+ stack?: string;
966
1008
  /**
967
1009
  * @private
968
1010
  * This field is private and should not be used, use `tag` instead.
@@ -972,9 +1014,6 @@ export declare const FfiError: Readonly<{
972
1014
  readonly inner: Readonly<{
973
1015
  detail: string;
974
1016
  }>;
975
- name: string;
976
- message: string;
977
- stack?: string;
978
1017
  cause?: unknown;
979
1018
  }): Readonly<{
980
1019
  detail: string;
@@ -1067,7 +1106,6 @@ export declare const FfiError: Readonly<{
1067
1106
  };
1068
1107
  Backpressure: {
1069
1108
  new (): {
1070
- stack?: string;
1071
1109
  /**
1072
1110
  * @private
1073
1111
  * This field is private and should not be used, use `tag` instead.
@@ -1076,10 +1114,10 @@ export declare const FfiError: Readonly<{
1076
1114
  readonly tag: FfiError_Tags.Backpressure;
1077
1115
  name: string;
1078
1116
  message: string;
1117
+ stack?: string;
1079
1118
  cause?: unknown;
1080
1119
  };
1081
1120
  "new"(): {
1082
- stack?: string;
1083
1121
  /**
1084
1122
  * @private
1085
1123
  * This field is private and should not be used, use `tag` instead.
@@ -1088,10 +1126,10 @@ export declare const FfiError: Readonly<{
1088
1126
  readonly tag: FfiError_Tags.Backpressure;
1089
1127
  name: string;
1090
1128
  message: string;
1129
+ stack?: string;
1091
1130
  cause?: unknown;
1092
1131
  };
1093
1132
  instanceOf(obj: any): obj is {
1094
- stack?: string;
1095
1133
  /**
1096
1134
  * @private
1097
1135
  * This field is private and should not be used, use `tag` instead.
@@ -1100,10 +1138,10 @@ export declare const FfiError: Readonly<{
1100
1138
  readonly tag: FfiError_Tags.Backpressure;
1101
1139
  name: string;
1102
1140
  message: string;
1141
+ stack?: string;
1103
1142
  cause?: unknown;
1104
1143
  };
1105
1144
  hasInner(obj: any): obj is {
1106
- stack?: string;
1107
1145
  /**
1108
1146
  * @private
1109
1147
  * This field is private and should not be used, use `tag` instead.
@@ -1112,6 +1150,7 @@ export declare const FfiError: Readonly<{
1112
1150
  readonly tag: FfiError_Tags.Backpressure;
1113
1151
  name: string;
1114
1152
  message: string;
1153
+ stack?: string;
1115
1154
  cause?: unknown;
1116
1155
  };
1117
1156
  isError(error: unknown): error is Error;
@@ -1424,6 +1463,40 @@ export declare const FfiError: Readonly<{
1424
1463
  * An error returned by a synchronous FFI operation.
1425
1464
  */
1426
1465
  export type FfiError = InstanceType<typeof FfiError['AlreadyStarted' | 'Stopped' | 'InvalidConfig' | 'InvalidKey' | 'InvalidPeerId' | 'InvalidAddress' | 'InvalidTopic' | 'NotPermitted' | 'Backpressure' | 'MessageTooLarge' | 'Transport' | 'InvalidState' | 'Internal']>;
1466
+ /**
1467
+ * Category of an mDNS failure.
1468
+ */
1469
+ export declare enum MdnsFailureKind {
1470
+ /**
1471
+ * The platform cannot provide mDNS sockets.
1472
+ */
1473
+ Unsupported = 0,
1474
+ /**
1475
+ * An interface has no usable address.
1476
+ */
1477
+ NoInterfaceAddress = 1,
1478
+ /**
1479
+ * A send named an interface that has gone away.
1480
+ */
1481
+ UnknownInterface = 2,
1482
+ /**
1483
+ * A goodbye could not be sent before shutdown gave up on a full send
1484
+ * buffer.
1485
+ */
1486
+ Congested = 3,
1487
+ /**
1488
+ * A datagram is larger than the carrier can ever send.
1489
+ */
1490
+ Oversized = 4,
1491
+ /**
1492
+ * The interface id space is exhausted.
1493
+ */
1494
+ InterfaceIdsExhausted = 5,
1495
+ /**
1496
+ * Platform I/O failed.
1497
+ */
1498
+ Io = 6
1499
+ }
1427
1500
  /**
1428
1501
  * Category of a failed NAT connection attempt.
1429
1502
  */
@@ -1609,6 +1682,8 @@ export declare enum P2pEvent_Tags {
1609
1682
  PeerUpdated = "PeerUpdated",
1610
1683
  PeerExpired = "PeerExpired",
1611
1684
  DiscoveryDialFailed = "DiscoveryDialFailed",
1685
+ MdnsFailed = "MdnsFailed",
1686
+ MdnsRecovered = "MdnsRecovered",
1612
1687
  DiscoveryProtocolViolation = "DiscoveryProtocolViolation"
1613
1688
  }
1614
1689
  /**
@@ -1898,6 +1973,7 @@ export declare const P2pEvent: Readonly<{
1898
1973
  IdentifyReceived: {
1899
1974
  new (inner: {
1900
1975
  peerId: string;
1976
+ connId: bigint;
1901
1977
  info: IdentifyInfo;
1902
1978
  }): {
1903
1979
  /**
@@ -1908,11 +1984,13 @@ export declare const P2pEvent: Readonly<{
1908
1984
  readonly tag: P2pEvent_Tags.IdentifyReceived;
1909
1985
  readonly inner: Readonly<{
1910
1986
  peerId: string;
1987
+ connId: bigint;
1911
1988
  info: IdentifyInfo;
1912
1989
  }>;
1913
1990
  };
1914
1991
  "new"(inner: {
1915
1992
  peerId: string;
1993
+ connId: bigint;
1916
1994
  info: IdentifyInfo;
1917
1995
  }): {
1918
1996
  /**
@@ -1923,6 +2001,7 @@ export declare const P2pEvent: Readonly<{
1923
2001
  readonly tag: P2pEvent_Tags.IdentifyReceived;
1924
2002
  readonly inner: Readonly<{
1925
2003
  peerId: string;
2004
+ connId: bigint;
1926
2005
  info: IdentifyInfo;
1927
2006
  }>;
1928
2007
  };
@@ -1935,6 +2014,7 @@ export declare const P2pEvent: Readonly<{
1935
2014
  readonly tag: P2pEvent_Tags.IdentifyReceived;
1936
2015
  readonly inner: Readonly<{
1937
2016
  peerId: string;
2017
+ connId: bigint;
1938
2018
  info: IdentifyInfo;
1939
2019
  }>;
1940
2020
  };
@@ -1942,6 +2022,7 @@ export declare const P2pEvent: Readonly<{
1942
2022
  PingRttMeasured: {
1943
2023
  new (inner: {
1944
2024
  peerId: string;
2025
+ connId: bigint;
1945
2026
  rttMs: bigint;
1946
2027
  }): {
1947
2028
  /**
@@ -1952,11 +2033,13 @@ export declare const P2pEvent: Readonly<{
1952
2033
  readonly tag: P2pEvent_Tags.PingRttMeasured;
1953
2034
  readonly inner: Readonly<{
1954
2035
  peerId: string;
2036
+ connId: bigint;
1955
2037
  rttMs: bigint;
1956
2038
  }>;
1957
2039
  };
1958
2040
  "new"(inner: {
1959
2041
  peerId: string;
2042
+ connId: bigint;
1960
2043
  rttMs: bigint;
1961
2044
  }): {
1962
2045
  /**
@@ -1967,6 +2050,7 @@ export declare const P2pEvent: Readonly<{
1967
2050
  readonly tag: P2pEvent_Tags.PingRttMeasured;
1968
2051
  readonly inner: Readonly<{
1969
2052
  peerId: string;
2053
+ connId: bigint;
1970
2054
  rttMs: bigint;
1971
2055
  }>;
1972
2056
  };
@@ -1979,6 +2063,7 @@ export declare const P2pEvent: Readonly<{
1979
2063
  readonly tag: P2pEvent_Tags.PingRttMeasured;
1980
2064
  readonly inner: Readonly<{
1981
2065
  peerId: string;
2066
+ connId: bigint;
1982
2067
  rttMs: bigint;
1983
2068
  }>;
1984
2069
  };
@@ -1986,6 +2071,7 @@ export declare const P2pEvent: Readonly<{
1986
2071
  PingTimeout: {
1987
2072
  new (inner: {
1988
2073
  peerId: string;
2074
+ connId: bigint;
1989
2075
  }): {
1990
2076
  /**
1991
2077
  * @private
@@ -1995,10 +2081,12 @@ export declare const P2pEvent: Readonly<{
1995
2081
  readonly tag: P2pEvent_Tags.PingTimeout;
1996
2082
  readonly inner: Readonly<{
1997
2083
  peerId: string;
2084
+ connId: bigint;
1998
2085
  }>;
1999
2086
  };
2000
2087
  "new"(inner: {
2001
2088
  peerId: string;
2089
+ connId: bigint;
2002
2090
  }): {
2003
2091
  /**
2004
2092
  * @private
@@ -2008,6 +2096,7 @@ export declare const P2pEvent: Readonly<{
2008
2096
  readonly tag: P2pEvent_Tags.PingTimeout;
2009
2097
  readonly inner: Readonly<{
2010
2098
  peerId: string;
2099
+ connId: bigint;
2011
2100
  }>;
2012
2101
  };
2013
2102
  instanceOf(obj: any): obj is {
@@ -2019,6 +2108,7 @@ export declare const P2pEvent: Readonly<{
2019
2108
  readonly tag: P2pEvent_Tags.PingTimeout;
2020
2109
  readonly inner: Readonly<{
2021
2110
  peerId: string;
2111
+ connId: bigint;
2022
2112
  }>;
2023
2113
  };
2024
2114
  };
@@ -2624,6 +2714,7 @@ export declare const P2pEvent: Readonly<{
2624
2714
  new (inner: {
2625
2715
  peerId: string;
2626
2716
  path: PathKind;
2717
+ connId: bigint;
2627
2718
  }): {
2628
2719
  /**
2629
2720
  * @private
@@ -2634,11 +2725,13 @@ export declare const P2pEvent: Readonly<{
2634
2725
  readonly inner: Readonly<{
2635
2726
  peerId: string;
2636
2727
  path: PathKind;
2728
+ connId: bigint;
2637
2729
  }>;
2638
2730
  };
2639
2731
  "new"(inner: {
2640
2732
  peerId: string;
2641
2733
  path: PathKind;
2734
+ connId: bigint;
2642
2735
  }): {
2643
2736
  /**
2644
2737
  * @private
@@ -2649,6 +2742,7 @@ export declare const P2pEvent: Readonly<{
2649
2742
  readonly inner: Readonly<{
2650
2743
  peerId: string;
2651
2744
  path: PathKind;
2745
+ connId: bigint;
2652
2746
  }>;
2653
2747
  };
2654
2748
  instanceOf(obj: any): obj is {
@@ -2661,6 +2755,7 @@ export declare const P2pEvent: Readonly<{
2661
2755
  readonly inner: Readonly<{
2662
2756
  peerId: string;
2663
2757
  path: PathKind;
2758
+ connId: bigint;
2664
2759
  }>;
2665
2760
  };
2666
2761
  };
@@ -2670,6 +2765,8 @@ export declare const P2pEvent: Readonly<{
2670
2765
  peerId: string;
2671
2766
  from: PathKind;
2672
2767
  to: PathKind;
2768
+ oldConnId: bigint;
2769
+ newConnId: bigint;
2673
2770
  }): {
2674
2771
  /**
2675
2772
  * @private
@@ -2682,6 +2779,8 @@ export declare const P2pEvent: Readonly<{
2682
2779
  peerId: string;
2683
2780
  from: PathKind;
2684
2781
  to: PathKind;
2782
+ oldConnId: bigint;
2783
+ newConnId: bigint;
2685
2784
  }>;
2686
2785
  };
2687
2786
  "new"(inner: {
@@ -2689,6 +2788,8 @@ export declare const P2pEvent: Readonly<{
2689
2788
  peerId: string;
2690
2789
  from: PathKind;
2691
2790
  to: PathKind;
2791
+ oldConnId: bigint;
2792
+ newConnId: bigint;
2692
2793
  }): {
2693
2794
  /**
2694
2795
  * @private
@@ -2701,6 +2802,8 @@ export declare const P2pEvent: Readonly<{
2701
2802
  peerId: string;
2702
2803
  from: PathKind;
2703
2804
  to: PathKind;
2805
+ oldConnId: bigint;
2806
+ newConnId: bigint;
2704
2807
  }>;
2705
2808
  };
2706
2809
  instanceOf(obj: any): obj is {
@@ -2715,6 +2818,8 @@ export declare const P2pEvent: Readonly<{
2715
2818
  peerId: string;
2716
2819
  from: PathKind;
2717
2820
  to: PathKind;
2821
+ oldConnId: bigint;
2822
+ newConnId: bigint;
2718
2823
  }>;
2719
2824
  };
2720
2825
  };
@@ -2868,6 +2973,8 @@ export declare const P2pEvent: Readonly<{
2868
2973
  InboundDirectUpgrade: {
2869
2974
  new (inner: {
2870
2975
  peerId: string;
2976
+ oldConnId: bigint;
2977
+ newConnId: bigint;
2871
2978
  }): {
2872
2979
  /**
2873
2980
  * @private
@@ -2877,10 +2984,14 @@ export declare const P2pEvent: Readonly<{
2877
2984
  readonly tag: P2pEvent_Tags.InboundDirectUpgrade;
2878
2985
  readonly inner: Readonly<{
2879
2986
  peerId: string;
2987
+ oldConnId: bigint;
2988
+ newConnId: bigint;
2880
2989
  }>;
2881
2990
  };
2882
2991
  "new"(inner: {
2883
2992
  peerId: string;
2993
+ oldConnId: bigint;
2994
+ newConnId: bigint;
2884
2995
  }): {
2885
2996
  /**
2886
2997
  * @private
@@ -2890,6 +3001,8 @@ export declare const P2pEvent: Readonly<{
2890
3001
  readonly tag: P2pEvent_Tags.InboundDirectUpgrade;
2891
3002
  readonly inner: Readonly<{
2892
3003
  peerId: string;
3004
+ oldConnId: bigint;
3005
+ newConnId: bigint;
2893
3006
  }>;
2894
3007
  };
2895
3008
  instanceOf(obj: any): obj is {
@@ -2901,6 +3014,8 @@ export declare const P2pEvent: Readonly<{
2901
3014
  readonly tag: P2pEvent_Tags.InboundDirectUpgrade;
2902
3015
  readonly inner: Readonly<{
2903
3016
  peerId: string;
3017
+ oldConnId: bigint;
3018
+ newConnId: bigint;
2904
3019
  }>;
2905
3020
  };
2906
3021
  };
@@ -3320,6 +3435,76 @@ export declare const P2pEvent: Readonly<{
3320
3435
  }>;
3321
3436
  };
3322
3437
  };
3438
+ MdnsFailed: {
3439
+ new (inner: {
3440
+ kind: MdnsFailureKind;
3441
+ detail: string;
3442
+ }): {
3443
+ /**
3444
+ * @private
3445
+ * This field is private and should not be used, use `tag` instead.
3446
+ */
3447
+ readonly [uniffiTypeNameSymbol]: "P2pEvent";
3448
+ readonly tag: P2pEvent_Tags.MdnsFailed;
3449
+ readonly inner: Readonly<{
3450
+ kind: MdnsFailureKind;
3451
+ detail: string;
3452
+ }>;
3453
+ };
3454
+ "new"(inner: {
3455
+ kind: MdnsFailureKind;
3456
+ detail: string;
3457
+ }): {
3458
+ /**
3459
+ * @private
3460
+ * This field is private and should not be used, use `tag` instead.
3461
+ */
3462
+ readonly [uniffiTypeNameSymbol]: "P2pEvent";
3463
+ readonly tag: P2pEvent_Tags.MdnsFailed;
3464
+ readonly inner: Readonly<{
3465
+ kind: MdnsFailureKind;
3466
+ detail: string;
3467
+ }>;
3468
+ };
3469
+ instanceOf(obj: any): obj is {
3470
+ /**
3471
+ * @private
3472
+ * This field is private and should not be used, use `tag` instead.
3473
+ */
3474
+ readonly [uniffiTypeNameSymbol]: "P2pEvent";
3475
+ readonly tag: P2pEvent_Tags.MdnsFailed;
3476
+ readonly inner: Readonly<{
3477
+ kind: MdnsFailureKind;
3478
+ detail: string;
3479
+ }>;
3480
+ };
3481
+ };
3482
+ MdnsRecovered: {
3483
+ new (): {
3484
+ /**
3485
+ * @private
3486
+ * This field is private and should not be used, use `tag` instead.
3487
+ */
3488
+ readonly [uniffiTypeNameSymbol]: "P2pEvent";
3489
+ readonly tag: P2pEvent_Tags.MdnsRecovered;
3490
+ };
3491
+ "new"(): {
3492
+ /**
3493
+ * @private
3494
+ * This field is private and should not be used, use `tag` instead.
3495
+ */
3496
+ readonly [uniffiTypeNameSymbol]: "P2pEvent";
3497
+ readonly tag: P2pEvent_Tags.MdnsRecovered;
3498
+ };
3499
+ instanceOf(obj: any): obj is {
3500
+ /**
3501
+ * @private
3502
+ * This field is private and should not be used, use `tag` instead.
3503
+ */
3504
+ readonly [uniffiTypeNameSymbol]: "P2pEvent";
3505
+ readonly tag: P2pEvent_Tags.MdnsRecovered;
3506
+ };
3507
+ };
3323
3508
  DiscoveryProtocolViolation: {
3324
3509
  new (inner: {
3325
3510
  peerId?: string;
@@ -3378,7 +3563,7 @@ export declare const P2pEvent: Readonly<{
3378
3563
  /**
3379
3564
  * Event delivered by the native endpoint driver.
3380
3565
  */
3381
- export type P2pEvent = InstanceType<typeof P2pEvent['EventsDropped' | 'DriverFailed' | 'ConnectionEstablished' | 'ConnectionClosed' | 'ConnectionReplaced' | 'PeerReady' | 'IdentifyReceived' | 'PingRttMeasured' | 'PingTimeout' | 'StreamReady' | 'StreamData' | 'StreamWriteAccepted' | 'StreamWriteStopped' | 'StreamRemoteWriteClosed' | 'StreamClosed' | 'EndpointError' | 'ReachabilityChanged' | 'PublicAddressesChanged' | 'RelayReserved' | 'RelayReservationLost' | 'PathEstablished' | 'InboundPathEstablished' | 'PathUpgraded' | 'HolePunchFailed' | 'ConnectFailed' | 'ConnectCancelled' | 'InboundDirectUpgrade' | 'Message' | 'PeerSubscribed' | 'PeerUnsubscribed' | 'GossipsubOutboundFailure' | 'GossipsubProtocolViolation' | 'PeerDiscovered' | 'PeerUpdated' | 'PeerExpired' | 'DiscoveryDialFailed' | 'DiscoveryProtocolViolation']>;
3566
+ export type P2pEvent = InstanceType<typeof P2pEvent['EventsDropped' | 'DriverFailed' | 'ConnectionEstablished' | 'ConnectionClosed' | 'ConnectionReplaced' | 'PeerReady' | 'IdentifyReceived' | 'PingRttMeasured' | 'PingTimeout' | 'StreamReady' | 'StreamData' | 'StreamWriteAccepted' | 'StreamWriteStopped' | 'StreamRemoteWriteClosed' | 'StreamClosed' | 'EndpointError' | 'ReachabilityChanged' | 'PublicAddressesChanged' | 'RelayReserved' | 'RelayReservationLost' | 'PathEstablished' | 'InboundPathEstablished' | 'PathUpgraded' | 'HolePunchFailed' | 'ConnectFailed' | 'ConnectCancelled' | 'InboundDirectUpgrade' | 'Message' | 'PeerSubscribed' | 'PeerUnsubscribed' | 'GossipsubOutboundFailure' | 'GossipsubProtocolViolation' | 'PeerDiscovered' | 'PeerUpdated' | 'PeerExpired' | 'DiscoveryDialFailed' | 'MdnsFailed' | 'MdnsRecovered' | 'DiscoveryProtocolViolation']>;
3382
3567
  /**
3383
3568
  * This should be called before anything else.
3384
3569
  *
@@ -3393,6 +3578,13 @@ declare function uniffiEnsureInitialized(): void;
3393
3578
  declare const _default: Readonly<{
3394
3579
  initialize: typeof uniffiEnsureInitialized;
3395
3580
  converters: {
3581
+ FfiConverterTypeConfigCapability: {
3582
+ readFromCursor(c: Cursor): ConfigCapability;
3583
+ writeIntoCursor(value: ConfigCapability, c: Cursor): void;
3584
+ allocationSize(value: ConfigCapability): number;
3585
+ lift(value: UniffiByteArray): ConfigCapability;
3586
+ lower(value: ConfigCapability, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
3587
+ };
3396
3588
  FfiConverterTypeConnectTarget: {
3397
3589
  readFromCursor(c: Cursor): ConnectTarget;
3398
3590
  writeIntoCursor(value: ConnectTarget, c: Cursor): void;
@@ -3463,6 +3655,13 @@ declare const _default: Readonly<{
3463
3655
  lift(value: UniffiByteArray): KnownPeerInfo;
3464
3656
  lower(value: KnownPeerInfo, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
3465
3657
  };
3658
+ FfiConverterTypeMdnsFailureKind: {
3659
+ readFromCursor(c: Cursor): MdnsFailureKind;
3660
+ writeIntoCursor(value: MdnsFailureKind, c: Cursor): void;
3661
+ allocationSize(value: MdnsFailureKind): number;
3662
+ lift(value: UniffiByteArray): MdnsFailureKind;
3663
+ lower(value: MdnsFailureKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
3664
+ };
3466
3665
  FfiConverterTypeMdnsOptions: {
3467
3666
  readFromCursor(c: Cursor): MdnsOptions;
3468
3667
  writeIntoCursor(value: MdnsOptions, c: Cursor): void;