@itsliaaa/baileys 0.3.16 → 0.3.17
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/README.md +20 -21
- package/WAProto/index.d.ts +83 -23
- package/WAProto/index.js +612 -167
- package/lib/Defaults/index.js +1 -1
- package/lib/Utils/generics.js +1 -1
- package/lib/Utils/rich-message-utils.d.ts +1 -1
- package/lib/Utils/rich-message-utils.d.ts.map +1 -1
- package/lib/Utils/rich-message-utils.js +122 -10
- package/lib/Utils/rich-message-utils.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,37 +36,36 @@ This fork designed for production use with a focus on clarity and safety:
|
|
|
36
36
|
|
|
37
37
|
> [!IMPORTANT]
|
|
38
38
|
> Hi everyone,
|
|
39
|
-
>
|
|
40
|
-
> I
|
|
41
|
-
>
|
|
42
|
-
>
|
|
43
|
-
>
|
|
39
|
+
>
|
|
40
|
+
> I want to clarify two separate attribution issues regarding packages derived from this fork.
|
|
41
|
+
>
|
|
42
|
+
> 1. Direct redistribution of my modifications without attribution
|
|
43
|
+
>
|
|
44
|
+
> The following packages are operated by the same individual under multiple npm accounts:
|
|
45
|
+
>
|
|
44
46
|
> - [@nuisockets](https://www.npmjs.com/package/@nuisockets/baileys)
|
|
45
47
|
> - [@nuiisatoru](https://www.npmjs.com/package/@nuiisatoru/baileys)
|
|
46
48
|
> - [@nuiisweetberry](https://www.npmjs.com/package/@nuiisweetberry/baileys)
|
|
49
|
+
> - [@nuiisweety](https://www.npmjs.com/package/@nuiisweety/baileys)
|
|
50
|
+
>
|
|
51
|
+
> These packages redistribute files and modifications originating from this fork while removing contributor credits and modification notes.
|
|
52
|
+
>
|
|
53
|
+
> 2. Rebranded republishes of this fork
|
|
54
|
+
>
|
|
47
55
|
> - [@lumina-md](https://www.npmjs.com/package/@lumina-md/baileys)
|
|
48
56
|
> - [@sairidev](https://www.npmjs.com/package/@sairidev/baileys-new)
|
|
49
57
|
> - [nexora-baileys](https://www.npmjs.com/package/nexora-baileys)
|
|
58
|
+
>
|
|
59
|
+
> These packages primarily repackage or republish this fork under different names while failing to preserve proper attribution, credits, or modification notes.
|
|
50
60
|
>
|
|
51
|
-
>
|
|
52
|
-
>
|
|
53
|
-
> - Renamed my fork under different package names
|
|
54
|
-
> - Removed or ignored proper maintainer credit
|
|
55
|
-
> - Added unnecessary overhead
|
|
56
|
-
> - Rewrote changelogs and modification notes under their own names
|
|
57
|
-
> - Claimed existing work and changes as if they made them
|
|
58
|
-
> - Copied code directly from my fork with little to no meaningful modification
|
|
59
|
-
>
|
|
60
|
-
> This is not acceptable.
|
|
61
|
-
>
|
|
62
|
-
> To be clear, I am **NOT** the original maintainer of Baileys. full respect goes to https://github.com/WhiskeySockets/Baileys.
|
|
61
|
+
> To be clear, I am **NOT** the original maintainer of Baileys. Full credit and respect belong to:
|
|
63
62
|
>
|
|
64
|
-
>
|
|
63
|
+
> https://github.com/WhiskeySockets/Baileys
|
|
64
|
+
>
|
|
65
|
+
> **Forking is completely acceptable. Removing attribution, contributor credits, or modification history is not.**
|
|
65
66
|
>
|
|
66
|
-
> Forking is completely fine. Removing credits and presenting someone else's work as your own is not.
|
|
67
|
-
>
|
|
68
67
|
> Please report if necessary.
|
|
69
|
-
>
|
|
68
|
+
>
|
|
70
69
|
> Thank you. 🤍
|
|
71
70
|
|
|
72
71
|
> [!NOTE]
|
package/WAProto/index.d.ts
CHANGED
|
@@ -2451,7 +2451,8 @@ export namespace proto {
|
|
|
2451
2451
|
enum BotSignatureUseCase {
|
|
2452
2452
|
UNSPECIFIED = 0,
|
|
2453
2453
|
WA_BOT_MSG = 1,
|
|
2454
|
-
WA_TEE_BOT_MSG = 2
|
|
2454
|
+
WA_TEE_BOT_MSG = 2,
|
|
2455
|
+
P2P_PILLS = 3
|
|
2455
2456
|
}
|
|
2456
2457
|
}
|
|
2457
2458
|
|
|
@@ -3622,6 +3623,8 @@ export namespace proto {
|
|
|
3622
3623
|
businessJid?: (string|null);
|
|
3623
3624
|
pills?: (proto.ContextInfo.BusinessInteractionPills.IPill[]|null);
|
|
3624
3625
|
entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
|
|
3626
|
+
signedPayload?: (Uint8Array|null);
|
|
3627
|
+
signatureEnvelope?: (proto.IBotSignatureVerificationMetadata|null);
|
|
3625
3628
|
}
|
|
3626
3629
|
|
|
3627
3630
|
class BusinessInteractionPills implements IBusinessInteractionPills {
|
|
@@ -3629,6 +3632,8 @@ export namespace proto {
|
|
|
3629
3632
|
public businessJid?: (string|null);
|
|
3630
3633
|
public pills: proto.ContextInfo.BusinessInteractionPills.IPill[];
|
|
3631
3634
|
public entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
|
|
3635
|
+
public signedPayload?: (Uint8Array|null);
|
|
3636
|
+
public signatureEnvelope?: (proto.IBotSignatureVerificationMetadata|null);
|
|
3632
3637
|
public static create(properties?: proto.ContextInfo.IBusinessInteractionPills): proto.ContextInfo.BusinessInteractionPills;
|
|
3633
3638
|
public static encode(m: proto.ContextInfo.IBusinessInteractionPills, w?: $protobuf.Writer): $protobuf.Writer;
|
|
3634
3639
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.BusinessInteractionPills;
|
|
@@ -3682,6 +3687,24 @@ export namespace proto {
|
|
|
3682
3687
|
SHOP = 11,
|
|
3683
3688
|
ORDER = 12
|
|
3684
3689
|
}
|
|
3690
|
+
|
|
3691
|
+
interface ISignedPayload {
|
|
3692
|
+
verifiedName?: (string|null);
|
|
3693
|
+
pills?: (proto.ContextInfo.BusinessInteractionPills.IPill[]|null);
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
class SignedPayload implements ISignedPayload {
|
|
3697
|
+
constructor(p?: proto.ContextInfo.BusinessInteractionPills.ISignedPayload);
|
|
3698
|
+
public verifiedName?: (string|null);
|
|
3699
|
+
public pills: proto.ContextInfo.BusinessInteractionPills.IPill[];
|
|
3700
|
+
public static create(properties?: proto.ContextInfo.BusinessInteractionPills.ISignedPayload): proto.ContextInfo.BusinessInteractionPills.SignedPayload;
|
|
3701
|
+
public static encode(m: proto.ContextInfo.BusinessInteractionPills.ISignedPayload, w?: $protobuf.Writer): $protobuf.Writer;
|
|
3702
|
+
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.BusinessInteractionPills.SignedPayload;
|
|
3703
|
+
public static fromObject(d: { [k: string]: any }): proto.ContextInfo.BusinessInteractionPills.SignedPayload;
|
|
3704
|
+
public static toObject(m: proto.ContextInfo.BusinessInteractionPills.SignedPayload, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3705
|
+
public toJSON(): { [k: string]: any };
|
|
3706
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3707
|
+
}
|
|
3685
3708
|
}
|
|
3686
3709
|
|
|
3687
3710
|
interface IBusinessMessageForwardInfo {
|
|
@@ -5942,6 +5965,7 @@ export namespace proto {
|
|
|
5942
5965
|
paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
|
|
5943
5966
|
splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
|
|
5944
5967
|
newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
|
|
5968
|
+
rootSecretDistributeMessage?: (proto.Message.IRootSecretDistributeMessage|null);
|
|
5945
5969
|
}
|
|
5946
5970
|
|
|
5947
5971
|
class Message implements IMessage {
|
|
@@ -6052,6 +6076,7 @@ export namespace proto {
|
|
|
6052
6076
|
public paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
|
|
6053
6077
|
public splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
|
|
6054
6078
|
public newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
|
|
6079
|
+
public rootSecretDistributeMessage?: (proto.Message.IRootSecretDistributeMessage|null);
|
|
6055
6080
|
public static create(properties?: proto.IMessage): proto.Message;
|
|
6056
6081
|
public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
|
6057
6082
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message;
|
|
@@ -9398,12 +9423,14 @@ export namespace proto {
|
|
|
9398
9423
|
interface IPollAddOptionMessage {
|
|
9399
9424
|
pollCreationMessageKey?: (proto.IMessageKey|null);
|
|
9400
9425
|
addOption?: (proto.Message.PollCreationMessage.IOption|null);
|
|
9426
|
+
metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
|
|
9401
9427
|
}
|
|
9402
9428
|
|
|
9403
9429
|
class PollAddOptionMessage implements IPollAddOptionMessage {
|
|
9404
9430
|
constructor(p?: proto.Message.IPollAddOptionMessage);
|
|
9405
9431
|
public pollCreationMessageKey?: (proto.IMessageKey|null);
|
|
9406
9432
|
public addOption?: (proto.Message.PollCreationMessage.IOption|null);
|
|
9433
|
+
public metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
|
|
9407
9434
|
public static create(properties?: proto.Message.IPollAddOptionMessage): proto.Message.PollAddOptionMessage;
|
|
9408
9435
|
public static encode(m: proto.Message.IPollAddOptionMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
|
9409
9436
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PollAddOptionMessage;
|
|
@@ -9565,10 +9592,14 @@ export namespace proto {
|
|
|
9565
9592
|
}
|
|
9566
9593
|
|
|
9567
9594
|
interface IPollUpdateMessageMetadata {
|
|
9595
|
+
pollNameHash?: (Uint8Array|null);
|
|
9596
|
+
lastEditStanzaId?: (string|null);
|
|
9568
9597
|
}
|
|
9569
9598
|
|
|
9570
9599
|
class PollUpdateMessageMetadata implements IPollUpdateMessageMetadata {
|
|
9571
9600
|
constructor(p?: proto.Message.IPollUpdateMessageMetadata);
|
|
9601
|
+
public pollNameHash?: (Uint8Array|null);
|
|
9602
|
+
public lastEditStanzaId?: (string|null);
|
|
9572
9603
|
public static create(properties?: proto.Message.IPollUpdateMessageMetadata): proto.Message.PollUpdateMessageMetadata;
|
|
9573
9604
|
public static encode(m: proto.Message.IPollUpdateMessageMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
|
9574
9605
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PollUpdateMessageMetadata;
|
|
@@ -9904,6 +9935,22 @@ export namespace proto {
|
|
|
9904
9935
|
}
|
|
9905
9936
|
}
|
|
9906
9937
|
|
|
9938
|
+
interface IRootSecretDistributeMessage {
|
|
9939
|
+
chatJid?: (string|null);
|
|
9940
|
+
}
|
|
9941
|
+
|
|
9942
|
+
class RootSecretDistributeMessage implements IRootSecretDistributeMessage {
|
|
9943
|
+
constructor(p?: proto.Message.IRootSecretDistributeMessage);
|
|
9944
|
+
public chatJid?: (string|null);
|
|
9945
|
+
public static create(properties?: proto.Message.IRootSecretDistributeMessage): proto.Message.RootSecretDistributeMessage;
|
|
9946
|
+
public static encode(m: proto.Message.IRootSecretDistributeMessage, w?: $protobuf.Writer): $protobuf.Writer;
|
|
9947
|
+
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.RootSecretDistributeMessage;
|
|
9948
|
+
public static fromObject(d: { [k: string]: any }): proto.Message.RootSecretDistributeMessage;
|
|
9949
|
+
public static toObject(m: proto.Message.RootSecretDistributeMessage, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9950
|
+
public toJSON(): { [k: string]: any };
|
|
9951
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9952
|
+
}
|
|
9953
|
+
|
|
9907
9954
|
interface IScheduledCallCreationMessage {
|
|
9908
9955
|
scheduledTimestampMs?: (number|Long|null);
|
|
9909
9956
|
callType?: (proto.Message.ScheduledCallCreationMessage.CallType|null);
|
|
@@ -11634,11 +11681,13 @@ export namespace proto {
|
|
|
11634
11681
|
|
|
11635
11682
|
interface IPollAdditionalMetadata {
|
|
11636
11683
|
pollInvalidated?: (boolean|null);
|
|
11684
|
+
pollNameHashHistory?: (proto.PollAdditionalMetadata.IPollNameHashHistoryEntry[]|null);
|
|
11637
11685
|
}
|
|
11638
11686
|
|
|
11639
11687
|
class PollAdditionalMetadata implements IPollAdditionalMetadata {
|
|
11640
11688
|
constructor(p?: proto.IPollAdditionalMetadata);
|
|
11641
11689
|
public pollInvalidated?: (boolean|null);
|
|
11690
|
+
public pollNameHashHistory: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry[];
|
|
11642
11691
|
public static create(properties?: proto.IPollAdditionalMetadata): proto.PollAdditionalMetadata;
|
|
11643
11692
|
public static encode(m: proto.IPollAdditionalMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
|
11644
11693
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollAdditionalMetadata;
|
|
@@ -11648,6 +11697,27 @@ export namespace proto {
|
|
|
11648
11697
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
11649
11698
|
}
|
|
11650
11699
|
|
|
11700
|
+
namespace PollAdditionalMetadata {
|
|
11701
|
+
|
|
11702
|
+
interface IPollNameHashHistoryEntry {
|
|
11703
|
+
editStanzaId?: (string|null);
|
|
11704
|
+
pollNameHash?: (Uint8Array|null);
|
|
11705
|
+
}
|
|
11706
|
+
|
|
11707
|
+
class PollNameHashHistoryEntry implements IPollNameHashHistoryEntry {
|
|
11708
|
+
constructor(p?: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry);
|
|
11709
|
+
public editStanzaId?: (string|null);
|
|
11710
|
+
public pollNameHash?: (Uint8Array|null);
|
|
11711
|
+
public static create(properties?: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry): proto.PollAdditionalMetadata.PollNameHashHistoryEntry;
|
|
11712
|
+
public static encode(m: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry, w?: $protobuf.Writer): $protobuf.Writer;
|
|
11713
|
+
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollAdditionalMetadata.PollNameHashHistoryEntry;
|
|
11714
|
+
public static fromObject(d: { [k: string]: any }): proto.PollAdditionalMetadata.PollNameHashHistoryEntry;
|
|
11715
|
+
public static toObject(m: proto.PollAdditionalMetadata.PollNameHashHistoryEntry, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
11716
|
+
public toJSON(): { [k: string]: any };
|
|
11717
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
11718
|
+
}
|
|
11719
|
+
}
|
|
11720
|
+
|
|
11651
11721
|
interface IPollEncValue {
|
|
11652
11722
|
encPayload?: (Uint8Array|null);
|
|
11653
11723
|
encIv?: (Uint8Array|null);
|
|
@@ -11672,6 +11742,7 @@ export namespace proto {
|
|
|
11672
11742
|
senderTimestampMs?: (number|Long|null);
|
|
11673
11743
|
serverTimestampMs?: (number|Long|null);
|
|
11674
11744
|
unread?: (boolean|null);
|
|
11745
|
+
metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
|
|
11675
11746
|
}
|
|
11676
11747
|
|
|
11677
11748
|
class PollUpdate implements IPollUpdate {
|
|
@@ -11681,6 +11752,7 @@ export namespace proto {
|
|
|
11681
11752
|
public senderTimestampMs?: (number|Long|null);
|
|
11682
11753
|
public serverTimestampMs?: (number|Long|null);
|
|
11683
11754
|
public unread?: (boolean|null);
|
|
11755
|
+
public metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
|
|
11684
11756
|
public static create(properties?: proto.IPollUpdate): proto.PollUpdate;
|
|
11685
11757
|
public static encode(m: proto.IPollUpdate, w?: $protobuf.Writer): $protobuf.Writer;
|
|
11686
11758
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollUpdate;
|
|
@@ -13514,13 +13586,13 @@ export namespace proto {
|
|
|
13514
13586
|
|
|
13515
13587
|
interface ILabelAssociationAction {
|
|
13516
13588
|
labeled?: (boolean|null);
|
|
13517
|
-
modelMetaData?: (
|
|
13589
|
+
modelMetaData?: (string|null);
|
|
13518
13590
|
}
|
|
13519
13591
|
|
|
13520
13592
|
class LabelAssociationAction implements ILabelAssociationAction {
|
|
13521
13593
|
constructor(p?: proto.SyncActionValue.ILabelAssociationAction);
|
|
13522
13594
|
public labeled?: (boolean|null);
|
|
13523
|
-
public modelMetaData
|
|
13595
|
+
public modelMetaData?: (string|null);
|
|
13524
13596
|
public static create(properties?: proto.SyncActionValue.ILabelAssociationAction): proto.SyncActionValue.LabelAssociationAction;
|
|
13525
13597
|
public static encode(m: proto.SyncActionValue.ILabelAssociationAction, w?: $protobuf.Writer): $protobuf.Writer;
|
|
13526
13598
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.LabelAssociationAction;
|
|
@@ -13654,11 +13726,13 @@ export namespace proto {
|
|
|
13654
13726
|
|
|
13655
13727
|
interface IMaibaAIFeaturesControlAction {
|
|
13656
13728
|
aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null);
|
|
13729
|
+
aiReplyMode?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode|null);
|
|
13657
13730
|
}
|
|
13658
13731
|
|
|
13659
13732
|
class MaibaAIFeaturesControlAction implements IMaibaAIFeaturesControlAction {
|
|
13660
13733
|
constructor(p?: proto.SyncActionValue.IMaibaAIFeaturesControlAction);
|
|
13661
13734
|
public aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null);
|
|
13735
|
+
public aiReplyMode?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode|null);
|
|
13662
13736
|
public static create(properties?: proto.SyncActionValue.IMaibaAIFeaturesControlAction): proto.SyncActionValue.MaibaAIFeaturesControlAction;
|
|
13663
13737
|
public static encode(m: proto.SyncActionValue.IMaibaAIFeaturesControlAction, w?: $protobuf.Writer): $protobuf.Writer;
|
|
13664
13738
|
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.MaibaAIFeaturesControlAction;
|
|
@@ -13675,6 +13749,12 @@ export namespace proto {
|
|
|
13675
13749
|
ENABLED_HAS_LEARNING = 1,
|
|
13676
13750
|
DISABLED = 2
|
|
13677
13751
|
}
|
|
13752
|
+
|
|
13753
|
+
enum MaibaAIReplyMode {
|
|
13754
|
+
MUTED = 0,
|
|
13755
|
+
AI_AGENT = 1,
|
|
13756
|
+
SUGGESTIONS = 2
|
|
13757
|
+
}
|
|
13678
13758
|
}
|
|
13679
13759
|
|
|
13680
13760
|
interface IMarkChatAsReadAction {
|
|
@@ -13776,26 +13856,6 @@ export namespace proto {
|
|
|
13776
13856
|
}
|
|
13777
13857
|
}
|
|
13778
13858
|
|
|
13779
|
-
interface IModelMetadata {
|
|
13780
|
-
modelName?: (string|null);
|
|
13781
|
-
isLatestModel?: (boolean|null);
|
|
13782
|
-
isDetected?: (boolean|null);
|
|
13783
|
-
}
|
|
13784
|
-
|
|
13785
|
-
class ModelMetadata implements IModelMetadata {
|
|
13786
|
-
constructor(p?: proto.SyncActionValue.IModelMetadata);
|
|
13787
|
-
public modelName?: (string|null);
|
|
13788
|
-
public isLatestModel?: (boolean|null);
|
|
13789
|
-
public isDetected?: (boolean|null);
|
|
13790
|
-
public static create(properties?: proto.SyncActionValue.IModelMetadata): proto.SyncActionValue.ModelMetadata;
|
|
13791
|
-
public static encode(m: proto.SyncActionValue.IModelMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
|
13792
|
-
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.ModelMetadata;
|
|
13793
|
-
public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.ModelMetadata;
|
|
13794
|
-
public static toObject(m: proto.SyncActionValue.ModelMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
13795
|
-
public toJSON(): { [k: string]: any };
|
|
13796
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
13797
|
-
}
|
|
13798
|
-
|
|
13799
13859
|
interface IMusicUserIdAction {
|
|
13800
13860
|
musicUserId?: (string|null);
|
|
13801
13861
|
musicUserIdMap?: ({ [k: string]: string }|null);
|