sanka-baileyss 2.3.2 → 2.3.4

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 (159) hide show
  1. package/WAProto/BotMetadata/BotMetadata.d.ts +594 -1
  2. package/WAProto/BotMetadata/BotMetadata.js +1910 -148
  3. package/WAProto/BotMetadata/BotMetadata.proto +36 -0
  4. package/WAProto/E2E/E2E.d.ts +570 -6
  5. package/WAProto/E2E/E2E.js +1591 -26
  6. package/WAProto/E2E/E2E.proto +10 -1
  7. package/WAProto/HistorySync/HistorySync.d.ts +806 -6
  8. package/WAProto/HistorySync/HistorySync.js +2193 -29
  9. package/WAProto/HistorySync/HistorySync.proto +2 -1
  10. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +570 -6
  11. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1591 -26
  12. package/WAProto/StatusAttributions/StatusAttributions.d.ts +2 -1
  13. package/WAProto/StatusAttributions/StatusAttributions.js +7 -0
  14. package/WAProto/StatusAttributions/StatusAttributions.proto +1 -0
  15. package/WAProto/SyncAction/SyncAction.d.ts +230 -0
  16. package/WAProto/SyncAction/SyncAction.js +578 -2
  17. package/WAProto/SyncAction/SyncAction.proto +13 -1
  18. package/WAProto/Web/Web.d.ts +570 -6
  19. package/WAProto/Web/Web.js +1591 -26
  20. package/lib/Defaults/baileys-version.json +2 -2
  21. package/lib/Defaults/index.d.ts +42 -25
  22. package/lib/Defaults/index.js +6 -2
  23. package/lib/Signal/Group/sender-key-record.js +23 -28
  24. package/lib/Signal/libsignal.d.ts +1 -0
  25. package/lib/Socket/Client/index.js +13 -9
  26. package/lib/Socket/Client/types.d.ts +11 -10
  27. package/lib/Socket/Client/types.js +11 -7
  28. package/lib/Socket/Client/websocket.d.ts +9 -8
  29. package/lib/Socket/Client/websocket.js +52 -47
  30. package/lib/Socket/business.d.ts +185 -182
  31. package/lib/Socket/business.js +258 -249
  32. package/lib/Socket/chats.d.ts +90 -87
  33. package/lib/Socket/chats.js +1095 -888
  34. package/lib/Socket/community.d.ts +131 -0
  35. package/lib/Socket/community.js +369 -0
  36. package/lib/Socket/groups.d.ts +50 -41
  37. package/lib/Socket/groups.js +10 -3
  38. package/lib/Socket/index.d.ts +5 -1
  39. package/lib/Socket/index.js +19 -5
  40. package/lib/Socket/messages-recv.d.ts +6 -2
  41. package/lib/Socket/messages-recv.js +31 -8
  42. package/lib/Socket/messages-send.d.ts +5 -1
  43. package/lib/Socket/messages-send.js +1293 -1351
  44. package/lib/Socket/newsletter.d.ts +142 -135
  45. package/lib/Socket/newsletter.js +274 -230
  46. package/lib/Socket/socket.d.ts +37 -35
  47. package/lib/Socket/usync.d.ts +31 -30
  48. package/lib/Socket/usync.js +74 -62
  49. package/lib/Types/Auth.d.ts +89 -72
  50. package/lib/Types/Auth.js +1 -0
  51. package/lib/Types/Call.d.ts +11 -10
  52. package/lib/Types/Call.js +1 -0
  53. package/lib/Types/Chat.d.ts +85 -62
  54. package/lib/Types/Chat.js +4 -1
  55. package/lib/Types/Contact.js +1 -0
  56. package/lib/Types/Events.d.ts +209 -191
  57. package/lib/Types/Events.js +1 -0
  58. package/lib/Types/GroupMetadata.d.ts +12 -27
  59. package/lib/Types/GroupMetadata.js +1 -0
  60. package/lib/Types/Label.d.ts +41 -39
  61. package/lib/Types/Label.js +24 -21
  62. package/lib/Types/LabelAssociation.d.ts +18 -12
  63. package/lib/Types/LabelAssociation.js +6 -3
  64. package/lib/Types/Message.d.ts +3 -2
  65. package/lib/Types/Message.js +7 -3
  66. package/lib/Types/MexUpdates.d.ts +9 -0
  67. package/lib/Types/MexUpdates.js +18 -0
  68. package/lib/Types/Newsletter.d.ts +84 -67
  69. package/lib/Types/Newsletter.js +30 -23
  70. package/lib/Types/Product.d.ts +70 -56
  71. package/lib/Types/Product.js +1 -0
  72. package/lib/Types/Signal.d.ts +46 -35
  73. package/lib/Types/Signal.js +1 -0
  74. package/lib/Types/Socket.d.ts +105 -101
  75. package/lib/Types/Socket.js +1 -0
  76. package/lib/Types/State.d.ts +37 -23
  77. package/lib/Types/State.js +13 -1
  78. package/lib/Types/USync.d.ts +21 -20
  79. package/lib/Types/USync.js +1 -0
  80. package/lib/Types/index.d.ts +51 -42
  81. package/lib/Types/index.js +25 -19
  82. package/lib/Utils/auth-utils.d.ts +14 -11
  83. package/lib/Utils/auth-utils.js +189 -182
  84. package/lib/Utils/baileys-event-stream.d.ts +12 -10
  85. package/lib/Utils/baileys-event-stream.js +52 -46
  86. package/lib/Utils/business.d.ts +15 -8
  87. package/lib/Utils/business.js +229 -217
  88. package/lib/Utils/chat-utils.d.ts +22 -12
  89. package/lib/Utils/chat-utils.js +57 -27
  90. package/lib/Utils/crypto.d.ts +31 -15
  91. package/lib/Utils/crypto.js +136 -107
  92. package/lib/Utils/decode-wa-message.d.ts +34 -245
  93. package/lib/Utils/decode-wa-message.js +205 -217
  94. package/lib/Utils/event-buffer.d.ts +30 -26
  95. package/lib/Utils/event-buffer.js +519 -515
  96. package/lib/Utils/history.d.ts +2 -8
  97. package/lib/Utils/index.js +13 -9
  98. package/lib/Utils/link-preview.d.ts +16 -14
  99. package/lib/Utils/link-preview.js +100 -92
  100. package/lib/Utils/logger.d.ts +9 -7
  101. package/lib/Utils/logger.js +1 -1
  102. package/lib/Utils/lt-hash.d.ts +10 -8
  103. package/lib/Utils/lt-hash.js +49 -44
  104. package/lib/Utils/make-mutex.d.ts +4 -2
  105. package/lib/Utils/make-mutex.js +43 -39
  106. package/lib/Utils/messages-media.d.ts +75 -50
  107. package/lib/Utils/messages.d.ts +60 -35
  108. package/lib/Utils/messages.js +87 -8
  109. package/lib/Utils/noise-handler.d.ts +13 -12
  110. package/lib/Utils/noise-handler.js +143 -138
  111. package/lib/Utils/process-message.d.ts +32 -24
  112. package/lib/Utils/process-message.js +387 -367
  113. package/lib/Utils/signal.d.ts +24 -15
  114. package/lib/Utils/signal.js +143 -131
  115. package/lib/Utils/use-mongo-file-auth-state.d.ts +3 -2
  116. package/lib/Utils/use-mongo-file-auth-state.js +72 -63
  117. package/lib/Utils/use-multi-file-auth-state.d.ts +9 -8
  118. package/lib/Utils/use-multi-file-auth-state.js +110 -102
  119. package/lib/Utils/use-single-file-auth-state.d.ts +8 -7
  120. package/lib/Utils/use-single-file-auth-state.js +66 -61
  121. package/lib/Utils/validate-connection.d.ts +5 -2
  122. package/lib/Utils/validate-connection.js +7 -6
  123. package/lib/WABinary/constants.d.ts +24 -21
  124. package/lib/WABinary/constants.js +1302 -31
  125. package/lib/WABinary/decode.d.ts +4 -1
  126. package/lib/WABinary/decode.js +267 -234
  127. package/lib/WABinary/encode.d.ts +1 -0
  128. package/lib/WABinary/encode.js +248 -226
  129. package/lib/WABinary/generic-utils.d.ts +13 -1
  130. package/lib/WABinary/generic-utils.js +113 -96
  131. package/lib/WABinary/index.js +13 -9
  132. package/lib/WABinary/jid-utils.d.ts +23 -4
  133. package/lib/WABinary/jid-utils.js +58 -39
  134. package/lib/WABinary/types.d.ts +15 -11
  135. package/lib/WABinary/types.js +1 -0
  136. package/lib/WAM/BinaryInfo.d.ts +14 -14
  137. package/lib/WAM/BinaryInfo.js +11 -8
  138. package/lib/WAM/constants.d.ts +34 -26
  139. package/lib/WAM/constants.js +15358 -15349
  140. package/lib/WAM/encode.d.ts +1 -0
  141. package/lib/WAM/encode.js +153 -144
  142. package/lib/WAM/index.js +13 -9
  143. package/lib/index.js +11 -11
  144. package/package.json +1 -66
  145. package/WASignalGroup/GroupProtocol.js +0 -1771
  146. package/WASignalGroup/ciphertext_message.js +0 -10
  147. package/WASignalGroup/group_cipher.js +0 -103
  148. package/WASignalGroup/group_session_builder.js +0 -39
  149. package/WASignalGroup/index.js +0 -5
  150. package/WASignalGroup/keyhelper.js +0 -17
  151. package/WASignalGroup/protobufs.js +0 -2
  152. package/WASignalGroup/queue_job.js +0 -64
  153. package/WASignalGroup/sender_chain_key.js +0 -38
  154. package/WASignalGroup/sender_key_distribution_message.js +0 -68
  155. package/WASignalGroup/sender_key_message.js +0 -79
  156. package/WASignalGroup/sender_key_name.js +0 -59
  157. package/WASignalGroup/sender_key_record.js +0 -47
  158. package/WASignalGroup/sender_key_state.js +0 -110
  159. package/WASignalGroup/sender_message_key.js +0 -30
@@ -1,140 +1,147 @@
1
1
  import { SocketConfig, WAMediaUpload, NewsletterMetadata, NewsletterReactionMode, NewsletterViewRole, NewsletterFetchedUpdate, ContactAction } from '../Types'
2
2
  import { BinaryNode } from '../WABinary'
3
+
3
4
  export declare const makeNewsletterSocket: (config: SocketConfig) => {
4
- subscribeNewsletterUpdates: (jid: string) => Promise<{
5
- duration: string
6
- }>
7
- newsletterReactionMode: (jid: string, mode: NewsletterReactionMode) => Promise<void>
8
- newsletterUpdateDescription: (jid: string, description?: string) => Promise<void>
9
- newsletterUpdateName: (jid: string, name: string) => Promise<void>
10
- newsletterUpdatePicture: (jid: string, content: WAMediaUpload) => Promise<void>
11
- newsletterRemovePicture: (jid: string) => Promise<void>
12
- newsletterUnfollow: (jid: string) => Promise<void>
13
- newsletterFollow: (jid: string) => Promise<void>
14
- newsletterUnmute: (jid: string) => Promise<void>
15
- newsletterMute: (jid: string) => Promise<void>
16
- newsletterCreate: (name: string, description?: string, picture?: WAMediaUpload) => Promise<NewsletterMetadata>
17
- newsletterQuery: (jid: string, type: string, content: BinaryNode) => Promise<BinaryNode>
18
- newsletterWMexQuery: (jid?: string | undefined, query_id: number, content: BinaryNode) => Promise<BinaryNode>
19
- newsletterMetadata: (type: 'invite' | 'jid', key: string, role?: NewsletterViewRole) => Promise<NewsletterMetadata>
20
- newsletterAdminCount: (jid: string) => Promise<number>
21
- newsletterChangeOwner: (jid: string, userLid: string) => Promise<void>
22
- newsletterDemote: (jid: string, userLid: string) => Promise<void>
23
- newsletterDelete: (jid: string) => Promise<void>
24
- /**if code wasn't passed, the reaction will be removed (if is reacted) */
25
- newsletterReactMessage: (jid: string, server_id: string, code?: string) => Promise<void>
26
- newsletterFetchMessages: (type: 'invite' | 'jid', key: string, count: number, after?: number) => Promise<NewsletterFetchedUpdate[]>
27
- newsletterFetchUpdates: (jid: string, count: number, after?: number, since?: number) => Promise<NewsletterFetchedUpdate[]>
28
- groupQuery: (jid: string, type: string, content: BinaryNode) => Promise<BinaryNode>
29
- groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>
30
- groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>
31
- groupLeave: (id: string) => Promise<void>
32
- groupUpdateSubject: (jid: string, subject: string) => Promise<void>
33
- groupRequestParticipantsList: (jid: string) => Promise<{
34
- [key: string]: string
35
- }[]>
36
- groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "reject" | "approve") => Promise<{
37
- status: string
38
- jid: string
39
- }[]>
40
- groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
41
- status: string
42
- jid: string
43
- content: BinaryNode
44
- }[]>
45
- groupUpdateDescription: (jid: string, description?: string | undefined) => Promise<void>
46
- groupInviteCode: (jid: string) => Promise<string | undefined>
47
- groupRevokeInvite: (jid: string) => Promise<string | undefined>
48
- groupAcceptInvite: (code: string) => Promise<string | undefined>
49
- groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>
50
- groupAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<string>
51
- groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>
52
- groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>
53
- groupSettingUpdate: (jid: string, setting: "announcement" | "locked" | "not_announcement" | "unlocked") => Promise<void>
54
- groupMemberAddMode: (jid: string, mode: "all_member_add" | "admin_add") => Promise<void>
55
- groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>
56
- groupFetchAllParticipating: () => Promise<{
57
- [_: string]: import("../Types").GroupMetadata
58
- }>
59
- processingMutex: {
60
- mutex<T>(code: () => T | Promise<T>): Promise<T>
61
- }
62
- fetchPrivacySettings: (force?: boolean) => Promise<{
63
- [_: string]: string
64
- }>
65
- upsertMessage: (msg: import("../Types").WAProto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>
66
- appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>
67
- sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string | undefined) => Promise<void>
68
- presenceSubscribe: (toJid: string, tcToken?: Buffer | undefined) => Promise<void>
69
- getBotListV2: () => Promise<BotListInfo[]>
70
- getLidUser: (jid: string) => Promise<{
71
- lid: string
72
- id: string
73
- }[] | undefined>
74
- onWhatsApp: (...jids: string[]) => Promise<{
75
- jid: string
76
- exists: unknown
77
- }[] | undefined>
78
- fetchBlocklist: () => Promise<string[]>
79
- fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index").USyncQueryResultList[] | undefined>
80
- fetchStatus: (...jids: string[]) => Promise<import("../index").USyncQueryResultList[] | undefined>
81
- updateProfilePicture: (jid: string, content: WAMediaUpload) => Promise<void>
82
- removeProfilePicture: (jid: string) => Promise<void>
83
- updateProfileStatus: (status: string) => Promise<void>
84
- updateProfileName: (name: string) => Promise<void>
85
- updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>
86
- updateCallPrivacy: (value: import("../Types").WAPrivacyCallValue) => Promise<void>
87
- updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>
88
- updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>
89
- updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>
90
- updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>
91
- updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>
92
- updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyGroupAddValue) => Promise<void>
93
- updateDefaultDisappearingMode: (duration: number) => Promise<void>
94
- getBusinessProfile: (jid: string) => Promise<void | import("../Types").WABusinessProfile>
95
- resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>
96
- chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>
97
- cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: string | number | undefined) => Promise<void>
98
- addChatLabel: (jid: string, labelId: string) => Promise<void>
99
- removeChatLabel: (jid: string, labelId: string) => Promise<void>
100
- addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>
101
- removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>
102
- clearMessage: (jid: string, key: import("../Types").WAProto.IMessageKey, timeStamp: number | import("long").Long) => Promise<void>
103
- star: (jid: string, messages: {
104
- id: string
105
- fromMe?: boolean | undefined
106
- }[], star: boolean) => Promise<void>
107
- addOrEditContact: (jid: string, contact: ContactAction) => Promise<void>
108
- removeContact: (jid: string) => Promise<void>
109
- executeUSyncQuery: (usyncQuery: import("../index").USyncQuery) => Promise<import("../index").USyncQueryResult | undefined>
110
- type: "md"
111
- ws: any
112
- ev: import("../Types").BaileysEventEmitter & {
113
- process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void
114
- buffer(): void
115
- createBufferedFunction<A extends any[], T_1>(work: (...args: A) => Promise<T_1>): (...args: A) => Promise<T_1>
116
- flush(force?: boolean | undefined): boolean
117
- isBuffering(): boolean
118
- }
119
- authState: {
120
- creds: import("../Types").AuthenticationCreds
121
- keys: import("../Types").SignalKeyStoreWithTransaction
122
- }
123
- signalRepository: import("../Types").SignalRepository
124
- user: import("../Types").Contact | undefined
125
- generateMessageTag: () => string
126
- query: (node: BinaryNode, timeoutMs?: number | undefined) => Promise<BinaryNode>
127
- waitForMessage: <T_2>(msgId: string, timeoutMs?: number | undefined) => Promise<T_2>
128
- waitForSocketOpen: () => Promise<void>
129
- sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>
130
- sendNode: (frame: BinaryNode) => Promise<void>
131
- logout: (msg?: string | undefined) => Promise<void>
132
- end: (error: Error | undefined) => void
133
- onUnexpectedError: (err: Error | import("@hapi/boom").Boom<any>, msg: string) => void
134
- uploadPreKeys: (count?: number) => Promise<void>
135
- uploadPreKeysToServerIfRequired: () => Promise<void>
136
- requestPairingCode: (phoneNumber: string, code?: string) => Promise<string>
137
- waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number | undefined) => Promise<void>
138
- sendWAMBuffer: (wamBuffer: Buffer) => Promise<BinaryNode>
5
+ subscribeNewsletterUpdates: (jid: string) => Promise<{
6
+ duration: string
7
+ }>
8
+ newsletterReactionMode: (jid: string, mode: NewsletterReactionMode) => Promise<void>
9
+ newsletterUpdateDescription: (jid: string, description?: string) => Promise<void>
10
+ newsletterUpdateName: (jid: string, name: string) => Promise<void>
11
+ newsletterUpdatePicture: (jid: string, content: WAMediaUpload) => Promise<void>
12
+ newsletterRemovePicture: (jid: string) => Promise<void>
13
+ newsletterUnfollow: (jid: string) => Promise<void>
14
+ newsletterFollow: (jid: string) => Promise<void>
15
+ newsletterUnmute: (jid: string) => Promise<void>
16
+ newsletterMute: (jid: string) => Promise<void>
17
+ newsletterCreate: (name: string, description?: string, picture?: WAMediaUpload) => Promise<NewsletterMetadata>
18
+ newsletterQuery: (jid: string, type: string, content: BinaryNode) => Promise<BinaryNode>
19
+ newsletterWMexQuery: (jid?: string | undefined, query_id: number, content: BinaryNode) => Promise<BinaryNode>
20
+ newsletterMetadata: (type: 'invite' | 'jid', key: string, role?: NewsletterViewRole) => Promise<NewsletterMetadata>
21
+ newsletterFetchAllParticipating: () => Promise<{
22
+ [_: string]: NewsletterMetadata
23
+ }>
24
+ newsletterAdminCount: (jid: string) => Promise<number>
25
+ newsletterChangeOwner: (jid: string, userLid: string) => Promise<void>
26
+ newsletterDemote: (jid: string, userLid: string) => Promise<void>
27
+ newsletterDelete: (jid: string) => Promise<void>
28
+ /**if code wasn't passed, the reaction will be removed (if is reacted) */
29
+ newsletterReactMessage: (jid: string, server_id: string, code?: string) => Promise<void>
30
+ newsletterFetchMessages: (type: 'invite' | 'jid', key: string, count: number, after?: number) => Promise<NewsletterFetchedUpdate[]>
31
+ newsletterFetchUpdates: (jid: string, count: number, after?: number, since?: number) => Promise<NewsletterFetchedUpdate[]>
32
+ groupQuery: (jid: string, type: string, content: BinaryNode) => Promise<BinaryNode>
33
+ groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>
34
+ groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>
35
+ groupLeave: (id: string) => Promise<void>
36
+ groupUpdateSubject: (jid: string, subject: string) => Promise<void>
37
+ groupRequestParticipantsList: (jid: string) => Promise<{
38
+ [key: string]: string
39
+ }[]>
40
+ groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "reject" | "approve") => Promise<{
41
+ status: string
42
+ jid: string
43
+ }[]>
44
+ groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
45
+ status: string
46
+ jid: string
47
+ content: BinaryNode
48
+ }[]>
49
+ groupUpdateDescription: (jid: string, description?: string | undefined) => Promise<void>
50
+ groupInviteCode: (jid: string) => Promise<string | undefined>
51
+ groupRevokeInvite: (jid: string) => Promise<string | undefined>
52
+ groupAcceptInvite: (code: string) => Promise<string | undefined>
53
+ groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>
54
+ groupAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<string>
55
+ groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>
56
+ groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>
57
+ groupSettingUpdate: (jid: string, setting: "announcement" | "locked" | "not_announcement" | "unlocked") => Promise<void>
58
+ groupMemberAddMode: (jid: string, mode: "all_member_add" | "admin_add") => Promise<void>
59
+ groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>
60
+ groupFetchAllParticipating: () => Promise<{
61
+ [_: string]: import("../Types").GroupMetadata
62
+ }>
63
+ processingMutex: {
64
+ mutex<T>(code: () => T | Promise<T>): Promise<T>
65
+ }
66
+ fetchPrivacySettings: (force?: boolean) => Promise<{
67
+ [_: string]: string
68
+ }>
69
+ upsertMessage: (msg: import("../Types").WAProto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>
70
+ appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>
71
+ createCallLink: (type: 'audio' | 'video', event?: number, timeoutMs?: number) => Promise<void>
72
+ sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string | undefined) => Promise<void>
73
+ presenceSubscribe: (toJid: string, tcToken?: Buffer | undefined) => Promise<void>
74
+ getBotListV2: () => Promise<BotListInfo[]>
75
+ getLidUser: (jid: string) => Promise<{
76
+ lid: string
77
+ id: string
78
+ }[] | undefined>
79
+ onWhatsApp: (...jids: string[]) => Promise<{
80
+ jid: string
81
+ exists: unknown
82
+ }[] | undefined>
83
+ fetchBlocklist: () => Promise<string[]>
84
+ fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index").USyncQueryResultList[] | undefined>
85
+ fetchStatus: (...jids: string[]) => Promise<import("../index").USyncQueryResultList[] | undefined>
86
+ updateProfilePicture: (jid: string, content: WAMediaUpload) => Promise<void>
87
+ removeProfilePicture: (jid: string) => Promise<void>
88
+ updateProfileStatus: (status: string) => Promise<void>
89
+ updateProfileName: (name: string) => Promise<void>
90
+ updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>
91
+ updateCallPrivacy: (value: import("../Types").WAPrivacyCallValue) => Promise<void>
92
+ updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>
93
+ updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>
94
+ updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>
95
+ updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>
96
+ updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>
97
+ updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyGroupAddValue) => Promise<void>
98
+ updateDefaultDisappearingMode: (duration: number) => Promise<void>
99
+ updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>
100
+ getBusinessProfile: (jid: string) => Promise<void | import("../Types").WABusinessProfile>
101
+ resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>
102
+ chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>
103
+ cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: string | number | undefined) => Promise<void>
104
+ addChatLabel: (jid: string, labelId: string) => Promise<void>
105
+ removeChatLabel: (jid: string, labelId: string) => Promise<void>
106
+ addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>
107
+ removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>
108
+ clearMessage: (jid: string, key: import("../Types").WAProto.IMessageKey, timeStamp: number | import("long").Long) => Promise<void>
109
+ star: (jid: string, messages: {
110
+ id: string
111
+ fromMe?: boolean | undefined
112
+ }[], star: boolean) => Promise<void>
113
+ addOrEditContact: (jid: string, contact: ContactAction) => Promise<void>
114
+ removeContact: (jid: string) => Promise<void>
115
+ executeUSyncQuery: (usyncQuery: import("../index").USyncQuery) => Promise<import("../index").USyncQueryResult | undefined>
116
+ type: "md"
117
+ ws: any
118
+ ev: import("../Types").BaileysEventEmitter & {
119
+ process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void
120
+ buffer(): void
121
+ createBufferedFunction<A extends any[], T_1>(work: (...args: A) => Promise<T_1>): (...args: A) => Promise<T_1>
122
+ flush(force?: boolean | undefined): boolean
123
+ isBuffering(): boolean
124
+ }
125
+ authState: {
126
+ creds: import("../Types").AuthenticationCreds
127
+ keys: import("../Types").SignalKeyStoreWithTransaction
128
+ }
129
+ signalRepository: import("../Types").SignalRepository
130
+ user: import("../Types").Contact | undefined
131
+ generateMessageTag: () => string
132
+ query: (node: BinaryNode, timeoutMs?: number | undefined) => Promise<BinaryNode>
133
+ waitForMessage: <T_2>(msgId: string, timeoutMs?: number | undefined) => Promise<T_2>
134
+ waitForSocketOpen: () => Promise<void>
135
+ sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>
136
+ sendNode: (frame: BinaryNode) => Promise<void>
137
+ logout: (msg?: string | undefined) => Promise<void>
138
+ end: (error: Error | undefined) => void
139
+ onUnexpectedError: (err: Error | import("@hapi/boom").Boom<any>, msg: string) => void
140
+ uploadPreKeys: (count?: number) => Promise<void>
141
+ uploadPreKeysToServerIfRequired: () => Promise<void>
142
+ requestPairingCode: (phoneNumber: string, code?: string) => Promise<string>
143
+ waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number | undefined) => Promise<void>
144
+ sendWAMBuffer: (wamBuffer: Buffer) => Promise<BinaryNode>
139
145
  }
146
+
140
147
  export declare const extractNewsletterMetadata: (node: BinaryNode, isCreate?: boolean) => NewsletterMetadata