sauruslord-baileys 2.1.0 → 3.0.2

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 (115) hide show
  1. package/README.md +41 -0
  2. package/lib/Defaults/baileys-version.json +1 -1
  3. package/lib/Defaults/index.d.ts +53 -0
  4. package/lib/Defaults/index.js +2 -4
  5. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  6. package/lib/Signal/Group/group-session-builder.d.ts +14 -0
  7. package/lib/Signal/Group/group_cipher.d.ts +17 -0
  8. package/lib/Signal/Group/index.d.ts +11 -0
  9. package/lib/Signal/Group/keyhelper.d.ts +10 -0
  10. package/lib/Signal/Group/queue-job.d.ts +1 -0
  11. package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
  12. package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
  13. package/lib/Signal/Group/sender-key-message.d.ts +18 -0
  14. package/lib/Signal/Group/sender-key-name.d.ts +17 -0
  15. package/lib/Signal/Group/sender-key-record.d.ts +30 -0
  16. package/lib/Signal/Group/sender-key-state.d.ts +38 -0
  17. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  18. package/lib/Signal/baileys-version.json +3 -0
  19. package/lib/Signal/index.d.ts +53 -0
  20. package/lib/Signal/index.js +147 -0
  21. package/lib/Signal/libsignal.d.ts +3 -0
  22. package/lib/Signal/phonenumber-mcc.json +223 -0
  23. package/lib/Socket/Client/abstract-socket-client.d.ts +17 -0
  24. package/lib/Socket/Client/index.d.ts +3 -0
  25. package/lib/Socket/Client/mobile-socket-client.d.ts +13 -0
  26. package/lib/Socket/Client/web-socket-client.d.ts +12 -0
  27. package/lib/Socket/business.d.ts +171 -0
  28. package/lib/Socket/chats.d.ts +267 -0
  29. package/lib/Socket/chats.js +3 -22
  30. package/lib/Socket/dugong.js +9 -148
  31. package/lib/Socket/groups.d.ts +115 -0
  32. package/lib/Socket/index.d.ts +173 -0
  33. package/lib/Socket/lordsaurus.d.ts +266 -0
  34. package/lib/Socket/lordsaurus.js +580 -0
  35. package/lib/Socket/messages-recv.d.ts +161 -0
  36. package/lib/Socket/messages-recv.js +1085 -1085
  37. package/lib/Socket/messages-send.d.ts +149 -0
  38. package/lib/Socket/messages-send.js +257 -391
  39. package/lib/Socket/newsletter.d.ts +134 -0
  40. package/lib/Socket/newsletter.js +53 -159
  41. package/lib/Socket/registration.d.ts +267 -0
  42. package/lib/Socket/socket.d.ts +43 -0
  43. package/lib/Socket/usync.d.ts +36 -0
  44. package/lib/Store/index.d.ts +3 -0
  45. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  46. package/lib/Store/make-in-memory-store.d.ts +118 -0
  47. package/lib/Store/make-ordered-dictionary.d.ts +13 -0
  48. package/lib/Store/object-repository.d.ts +10 -0
  49. package/lib/Types/Auth.d.ts +110 -0
  50. package/lib/Types/Call.d.ts +13 -0
  51. package/lib/Types/Chat.d.ts +102 -0
  52. package/lib/Types/Contact.d.ts +19 -0
  53. package/lib/Types/Events.d.ts +157 -0
  54. package/lib/Types/GroupMetadata.d.ts +55 -0
  55. package/lib/Types/Label.d.ts +35 -0
  56. package/lib/Types/LabelAssociation.d.ts +29 -0
  57. package/lib/Types/Message.d.ts +273 -0
  58. package/lib/Types/Newsletter.d.ts +103 -0
  59. package/lib/Types/Product.d.ts +78 -0
  60. package/lib/Types/Signal.d.ts +57 -0
  61. package/lib/Types/Socket.d.ts +111 -0
  62. package/lib/Types/State.d.ts +27 -0
  63. package/lib/Types/USync.d.ts +25 -0
  64. package/lib/Types/index.d.ts +57 -0
  65. package/lib/Utils/auth-utils.d.ts +18 -0
  66. package/lib/Utils/baileys-event-stream.d.ts +16 -0
  67. package/lib/Utils/business.d.ts +22 -0
  68. package/lib/Utils/chat-utils.d.ts +71 -0
  69. package/lib/Utils/crypto.d.ts +41 -0
  70. package/lib/Utils/crypto.js +7 -23
  71. package/lib/Utils/decode-wa-message.d.ts +19 -0
  72. package/lib/Utils/decode-wa-message.js +0 -1
  73. package/lib/Utils/event-buffer.d.ts +35 -0
  74. package/lib/Utils/generics.d.ts +92 -0
  75. package/lib/Utils/generics.js +47 -135
  76. package/lib/Utils/history.d.ts +15 -0
  77. package/lib/Utils/index.d.ts +17 -0
  78. package/lib/Utils/link-preview.d.ts +21 -0
  79. package/lib/Utils/logger.d.ts +4 -0
  80. package/lib/Utils/lt-hash.d.ts +12 -0
  81. package/lib/Utils/make-mutex.d.ts +7 -0
  82. package/lib/Utils/messages-media.d.ts +116 -0
  83. package/lib/Utils/messages-media.js +24 -70
  84. package/lib/Utils/messages.d.ts +77 -0
  85. package/lib/Utils/messages.js +4 -180
  86. package/lib/Utils/noise-handler.d.ts +21 -0
  87. package/lib/Utils/process-message.d.ts +41 -0
  88. package/lib/Utils/signal.d.ts +32 -0
  89. package/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
  90. package/lib/Utils/validate-connection.d.ts +11 -0
  91. package/lib/WABinary/constants.d.ts +30 -0
  92. package/lib/WABinary/decode.d.ts +7 -0
  93. package/lib/WABinary/encode.d.ts +3 -0
  94. package/lib/WABinary/generic-utils.d.ts +17 -0
  95. package/lib/WABinary/index.d.ts +5 -0
  96. package/lib/WABinary/jid-utils.d.ts +31 -0
  97. package/lib/WABinary/types.d.ts +18 -0
  98. package/lib/WAM/BinaryInfo.d.ts +17 -0
  99. package/lib/WAM/constants.d.ts +38 -0
  100. package/lib/WAM/encode.d.ts +3 -0
  101. package/lib/WAM/index.d.ts +3 -0
  102. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
  103. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
  104. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  105. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  106. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +25 -0
  107. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +8 -0
  108. package/lib/WAUSync/Protocols/index.d.ts +4 -0
  109. package/lib/WAUSync/USyncQuery.d.ts +28 -0
  110. package/lib/WAUSync/USyncUser.d.ts +12 -0
  111. package/lib/WAUSync/index.d.ts +3 -0
  112. package/lib/index.d.ts +12 -0
  113. package/lib/index.js +40 -19
  114. package/package.json +9 -9
  115. package/LICENSE +0 -21
@@ -0,0 +1,223 @@
1
+ {
2
+ "93": 412,
3
+ "355": 276,
4
+ "213": 603,
5
+ "1-684": 544,
6
+ "376": 213,
7
+ "244": 631,
8
+ "1-264": 365,
9
+ "1-268": 344,
10
+ "54": 722,
11
+ "374": 283,
12
+ "297": 363,
13
+ "61": 505,
14
+ "43": 232,
15
+ "994": 400,
16
+ "1-242": 364,
17
+ "973": 426,
18
+ "880": 470,
19
+ "1-246": 342,
20
+ "375": 257,
21
+ "32": 206,
22
+ "501": 702,
23
+ "229": 616,
24
+ "1-441": 350,
25
+ "975": 402,
26
+ "591": 736,
27
+ "387": 218,
28
+ "267": 652,
29
+ "55": 724,
30
+ "1-284": 348,
31
+ "673": 528,
32
+ "359": 284,
33
+ "226": 613,
34
+ "257": 642,
35
+ "855": 456,
36
+ "237": 624,
37
+ "238": 625,
38
+ "1-345": 346,
39
+ "236": 623,
40
+ "235": 622,
41
+ "56": 730,
42
+ "86": 454,
43
+ "57": 732,
44
+ "269": 654,
45
+ "682": 548,
46
+ "506": 712,
47
+ "385": 219,
48
+ "53": 368,
49
+ "357": 280,
50
+ "420": 230,
51
+ "243": 630,
52
+ "45": 238,
53
+ "253": 638,
54
+ "1-767": 366,
55
+ "1-809": 370,
56
+ "1-849": 370,
57
+ "1-829": 370,
58
+ "593": 740,
59
+ "20": 602,
60
+ "503": 706,
61
+ "240": 627,
62
+ "291": 657,
63
+ "372": 248,
64
+ "251": 636,
65
+ "500": 750,
66
+ "298": 288,
67
+ "679": 542,
68
+ "358": 244,
69
+ "33": 208,
70
+ "689": 547,
71
+ "241": 628,
72
+ "220": 607,
73
+ "995": 282,
74
+ "49": 262,
75
+ "233": 620,
76
+ "350": 266,
77
+ "30": 202,
78
+ "299": 290,
79
+ "1-473": 352,
80
+ "1-671": 535,
81
+ "502": 704,
82
+ "224": 537,
83
+ "592": 738,
84
+ "509": 372,
85
+ "504": 708,
86
+ "852": 454,
87
+ "36": 216,
88
+ "354": 274,
89
+ "91": 404,
90
+ "62": 510,
91
+ "98": 432,
92
+ "964": 418,
93
+ "353": 234,
94
+ "972": 425,
95
+ "39": 222,
96
+ "225": 612,
97
+ "1-876": 338,
98
+ "81": 440,
99
+ "962": 416,
100
+ "254": 639,
101
+ "686": 545,
102
+ "383": 221,
103
+ "965": 419,
104
+ "371": 247,
105
+ "961": 415,
106
+ "266": 651,
107
+ "231": 618,
108
+ "218": 606,
109
+ "423": 295,
110
+ "370": 246,
111
+ "352": 270,
112
+ "389": 294,
113
+ "261": 646,
114
+ "265": 650,
115
+ "60": 502,
116
+ "960": 472,
117
+ "223": 610,
118
+ "356": 278,
119
+ "692": 551,
120
+ "222": 609,
121
+ "230": 617,
122
+ "52": 334,
123
+ "691": 550,
124
+ "373": 259,
125
+ "377": 212,
126
+ "976": 428,
127
+ "382": 297,
128
+ "1-664": 354,
129
+ "212": 604,
130
+ "258": 643,
131
+ "95": 414,
132
+ "264": 649,
133
+ "674": 536,
134
+ "977": 429,
135
+ "31": 204,
136
+ "687": 546,
137
+ "64": 530,
138
+ "505": 710,
139
+ "227": 614,
140
+ "234": 621,
141
+ "683": 555,
142
+ "1-670": 534,
143
+ "47": 242,
144
+ "968": 226,
145
+ "92": 410,
146
+ "680": 552,
147
+ "970": 423,
148
+ "507": 714,
149
+ "675": 537,
150
+ "595": 744,
151
+ "51": 716,
152
+ "63": 515,
153
+ "48": 260,
154
+ "351": 268,
155
+ "1-787, 1-939": 330,
156
+ "974": 427,
157
+ "242": 630,
158
+ "40": 226,
159
+ "7": 250,
160
+ "250": 635,
161
+ "290": 658,
162
+ "1-869": 356,
163
+ "1-758": 358,
164
+ "508": 308,
165
+ "1-784": 360,
166
+ "685": 544,
167
+ "378": 292,
168
+ "239": 626,
169
+ "966": 420,
170
+ "221": 608,
171
+ "381": 220,
172
+ "248": 633,
173
+ "232": 619,
174
+ "65": 525,
175
+ "386": 293,
176
+ "677": 540,
177
+ "27": 655,
178
+ "211": 659,
179
+ "34": 214,
180
+ "94": 413,
181
+ "249": 634,
182
+ "597": 746,
183
+ "268": 653,
184
+ "46": 240,
185
+ "41": 228,
186
+ "963": 417,
187
+ "886": 466,
188
+ "992": 436,
189
+ "255": 640,
190
+ "66": 520,
191
+ "228": 615,
192
+ "690": 554,
193
+ "676": 539,
194
+ "1-868": 374,
195
+ "216": 605,
196
+ "90": 286,
197
+ "993": 438,
198
+ "1-649": 376,
199
+ "688": 553,
200
+ "1-340": 332,
201
+ "256": 641,
202
+ "380": 255,
203
+ "971": 424,
204
+ "44": 234,
205
+ "1": 310,
206
+ "598": 748,
207
+ "998": 434,
208
+ "678": 541,
209
+ "379": 225,
210
+ "58": 734,
211
+ "681": 543,
212
+ "967": 421,
213
+ "260": 645,
214
+ "263": 648,
215
+ "670": 514,
216
+ "245": 632,
217
+ "856": 457,
218
+ "599": 362,
219
+ "850": 467,
220
+ "262": 647,
221
+ "82": 450,
222
+ "84": 452
223
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { EventEmitter } from 'events';
4
+ import { URL } from 'url';
5
+ import { SocketConfig } from '../../Types';
6
+ export declare abstract class AbstractSocketClient extends EventEmitter {
7
+ url: URL;
8
+ config: SocketConfig;
9
+ abstract get isOpen(): boolean;
10
+ abstract get isClosed(): boolean;
11
+ abstract get isClosing(): boolean;
12
+ abstract get isConnecting(): boolean;
13
+ constructor(url: URL, config: SocketConfig);
14
+ abstract connect(): Promise<void>;
15
+ abstract close(): Promise<void>;
16
+ abstract send(str: Uint8Array | string, cb?: (err?: Error) => void): boolean;
17
+ }
@@ -0,0 +1,3 @@
1
+ export * from './abstract-socket-client';
2
+ export * from './mobile-socket-client';
3
+ export * from './web-socket-client';
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ import { Socket } from 'net';
3
+ import { AbstractSocketClient } from './abstract-socket-client';
4
+ export declare class MobileSocketClient extends AbstractSocketClient {
5
+ protected socket: Socket | null;
6
+ get isOpen(): boolean;
7
+ get isClosed(): boolean;
8
+ get isClosing(): boolean;
9
+ get isConnecting(): boolean;
10
+ connect(): Promise<void>;
11
+ close(): Promise<void>;
12
+ send(str: string | Uint8Array, cb?: (err?: Error) => void): boolean;
13
+ }
@@ -0,0 +1,12 @@
1
+ import WebSocket from 'ws';
2
+ import { AbstractSocketClient } from './abstract-socket-client';
3
+ export declare class WebSocketClient extends AbstractSocketClient {
4
+ protected socket: WebSocket | null;
5
+ get isOpen(): boolean;
6
+ get isClosed(): boolean;
7
+ get isClosing(): boolean;
8
+ get isConnecting(): boolean;
9
+ connect(): Promise<void>;
10
+ close(): Promise<void>;
11
+ send(str: string | Uint8Array, cb?: (err?: Error) => void): boolean;
12
+ }
@@ -0,0 +1,171 @@
1
+ /// <reference types="node" />
2
+ import { GetCatalogOptions, ProductCreate, ProductUpdate, SocketConfig } from '../Types';
3
+ import { BinaryNode } from '../WABinary';
4
+ export declare const makeBusinessSocket: (config: SocketConfig) => {
5
+ logger: import("pino").Logger<import("pino").LoggerOptions>;
6
+ getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("../Types").OrderDetails>;
7
+ getCatalog: ({ jid, limit, cursor }: GetCatalogOptions) => Promise<{
8
+ products: import("../Types").Product[];
9
+ nextPageCursor: string | undefined;
10
+ }>;
11
+ getCollections: (jid?: string, limit?: number) => Promise<{
12
+ collections: import("../Types").CatalogCollection[];
13
+ }>;
14
+ productCreate: (create: ProductCreate) => Promise<import("../Types").Product>;
15
+ productDelete: (productIds: string[]) => Promise<{
16
+ deleted: number;
17
+ }>;
18
+ productUpdate: (productId: string, update: ProductUpdate) => Promise<import("../Types").Product>;
19
+ sendMessageAck: ({ tag, attrs, content }: BinaryNode) => Promise<void>;
20
+ sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
21
+ offerCall: (toJid: string, isVideo?: boolean) => Promise<{
22
+ id: string;
23
+ to: string;
24
+ }>;
25
+ rejectCall: (callId: string, callFrom: string) => Promise<void>;
26
+ getPrivacyTokens: (jids: string[]) => Promise<BinaryNode>;
27
+ assertSessions: (jids: string[], force: boolean) => Promise<boolean>;
28
+ relayMessage: (jid: string, message: import("../Types").WAProto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, cachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
29
+ sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types").MessageReceiptType) => Promise<void>;
30
+ sendReceipts: (keys: import("../Types").WAProto.IMessageKey[], type: import("../Types").MessageReceiptType) => Promise<void>;
31
+ getButtonArgs: (message: import("../Types").WAProto.IMessage) => {
32
+ [key: string]: string;
33
+ };
34
+ readMessages: (keys: import("../Types").WAProto.IMessageKey[]) => Promise<void>;
35
+ refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types").MediaConnInfo>;
36
+ getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<import("../WABinary").JidWithDevice[]>;
37
+ createParticipantNodes: (jids: string[], message: import("../Types").WAProto.IMessage, extraAttrs?: {
38
+ [key: string]: string;
39
+ } | undefined) => Promise<{
40
+ nodes: BinaryNode[];
41
+ shouldIncludeDeviceIdentity: boolean;
42
+ }>;
43
+ waUploadToServer: import("../Types").WAMediaUploadFunction;
44
+ fetchPrivacySettings: (force?: boolean) => Promise<{
45
+ [_: string]: string;
46
+ }>;
47
+ updateMediaMessage: (message: import("../Types").WAProto.IWebMessageInfo) => Promise<import("../Types").WAProto.IWebMessageInfo>;
48
+ sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<import("../Types").WAProto.WebMessageInfo | undefined>;
49
+ subscribeNewsletterUpdates: (jid: string) => Promise<{
50
+ duration: string;
51
+ }>;
52
+ newsletterReactionMode: (jid: string, mode: import("../Types").NewsletterReactionMode) => Promise<void>;
53
+ newsletterUpdateDescription: (jid: string, description?: string | undefined) => Promise<void>;
54
+ newsletterUpdateName: (jid: string, name: string) => Promise<void>;
55
+ newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
56
+ newsletterRemovePicture: (jid: string) => Promise<void>;
57
+ newsletterUnfollow: (jid: string) => Promise<void>;
58
+ newsletterFollow: (jid: string) => Promise<void>;
59
+ newsletterUnmute: (jid: string) => Promise<void>;
60
+ newsletterMute: (jid: string) => Promise<void>;
61
+ newsletterAction: (jid: string, type: "mute" | "follow" | "unfollow" | "unmute") => Promise<void>;
62
+ newsletterCreate: (name: string, description: string, reaction_codes: string) => Promise<import("../Types").NewsletterMetadata>;
63
+ newsletterMetadata: (type: "invite" | "jid", key: string, role?: import("../Types").NewsletterViewRole | undefined) => Promise<import("../Types").NewsletterMetadata>;
64
+ newsletterAdminCount: (jid: string) => Promise<number>;
65
+ newsletterChangeOwner: (jid: string, user: string) => Promise<void>;
66
+ newsletterDemote: (jid: string, user: string) => Promise<void>;
67
+ newsletterDelete: (jid: string) => Promise<void>;
68
+ newsletterReactMessage: (jid: string, serverId: string, code?: string | undefined) => Promise<void>;
69
+ newsletterFetchMessages: (type: "invite" | "jid", key: string, count: number, after?: number | undefined) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
70
+ newsletterFetchUpdates: (jid: string, count: number, after?: number | undefined, since?: number | undefined) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
71
+ groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
72
+ groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
73
+ groupLeave: (id: string) => Promise<void>;
74
+ groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
75
+ groupRequestParticipantsList: (jid: string) => Promise<{
76
+ [key: string]: string;
77
+ }[]>;
78
+ groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "reject" | "approve") => Promise<{
79
+ status: string;
80
+ jid: string;
81
+ }[]>;
82
+ groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
83
+ status: string;
84
+ jid: string;
85
+ content: BinaryNode;
86
+ }[]>;
87
+ groupUpdateDescription: (jid: string, description?: string | undefined) => Promise<void>;
88
+ groupInviteCode: (jid: string) => Promise<string | undefined>;
89
+ groupRevokeInvite: (jid: string) => Promise<string | undefined>;
90
+ groupAcceptInvite: (code: string) => Promise<string | undefined>;
91
+ groupAcceptInviteV4: (key: string | import("../Types").WAProto.IMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<string>;
92
+ groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
93
+ groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
94
+ groupSettingUpdate: (jid: string, setting: "announcement" | "locked" | "not_announcement" | "unlocked") => Promise<void>;
95
+ groupMemberAddMode: (jid: string, mode: "all_member_add" | "admin_add") => Promise<void>;
96
+ groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
97
+ groupFetchAllParticipating: () => Promise<{
98
+ [_: string]: import("../Types").GroupMetadata;
99
+ }>;
100
+ processingMutex: {
101
+ mutex<T>(code: () => T | Promise<T>): Promise<T>;
102
+ };
103
+ upsertMessage: (msg: import("../Types").WAProto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>;
104
+ appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
105
+ sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string | undefined) => Promise<void>;
106
+ presenceSubscribe: (toJid: string, tcToken?: Buffer | undefined) => Promise<void>;
107
+ profilePictureUrl: (jid: string, type?: "image" | "preview", timeoutMs?: number | undefined) => Promise<string | undefined>;
108
+ onWhatsApp: (...jids: string[]) => Promise<{
109
+ jid: string;
110
+ exists: unknown;
111
+ lid: unknown;
112
+ }[] | undefined>;
113
+ fetchBlocklist: () => Promise<string[]>;
114
+ fetchStatus: (jid: string) => Promise<{
115
+ status: string | undefined;
116
+ setAt: Date;
117
+ } | undefined>;
118
+ updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
119
+ removeProfilePicture: (jid: string) => Promise<void>;
120
+ updateProfileStatus: (status: string) => Promise<void>;
121
+ updateProfileName: (name: string) => Promise<void>;
122
+ updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
123
+ updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
124
+ updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
125
+ updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
126
+ updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
127
+ updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
128
+ updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
129
+ updateDefaultDisappearingMode: (duration: number) => Promise<void>;
130
+ getBusinessProfile: (jid: string) => Promise<void | import("../Types").WABusinessProfile>;
131
+ resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>;
132
+ chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
133
+ cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: string | number | undefined) => Promise<void>;
134
+ addChatLabel: (jid: string, labelId: string) => Promise<void>;
135
+ removeChatLabel: (jid: string, labelId: string) => Promise<void>;
136
+ addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
137
+ removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
138
+ star: (jid: string, messages: {
139
+ id: string;
140
+ fromMe?: boolean | undefined;
141
+ }[], star: boolean) => Promise<void>;
142
+ type: "md";
143
+ ws: any;
144
+ ev: import("../Types").BaileysEventEmitter & {
145
+ process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
146
+ buffer(): void;
147
+ createBufferedFunction<A extends any[], T_1>(work: (...args: A) => Promise<T_1>): (...args: A) => Promise<T_1>;
148
+ flush(force?: boolean | undefined): boolean;
149
+ isBuffering(): boolean;
150
+ };
151
+ authState: {
152
+ creds: import("../Types").AuthenticationCreds;
153
+ keys: import("../Types").SignalKeyStoreWithTransaction;
154
+ };
155
+ signalRepository: import("../Types").SignalRepository;
156
+ user: import("../Types").Contact | undefined;
157
+ generateMessageTag: () => string;
158
+ query: (node: BinaryNode, timeoutMs?: number | undefined) => Promise<BinaryNode>;
159
+ waitForMessage: <T_2>(msgId: string, timeoutMs?: number | undefined) => Promise<T_2>;
160
+ waitForSocketOpen: () => Promise<void>;
161
+ sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
162
+ sendNode: (frame: BinaryNode) => Promise<void>;
163
+ logout: (msg?: string | undefined) => Promise<void>;
164
+ end: (error: Error | undefined) => void;
165
+ onUnexpectedError: (err: Error | import("@hapi/boom").Boom<any>, msg: string) => void;
166
+ uploadPreKeys: (count?: number) => Promise<void>;
167
+ uploadPreKeysToServerIfRequired: () => Promise<void>;
168
+ requestPairingCode: (phoneNumber: string) => Promise<string>;
169
+ waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number | undefined) => Promise<void>;
170
+ sendWAMBuffer: (wamBuffer: Buffer) => Promise<BinaryNode>;
171
+ };