lordceaser-baileys 1.0.13 → 1.0.14

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/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Rajeh Taher/WhiskeySockets
4
- Copyright (c) 2026 Lia Wynn
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Rajeh Taher/WhiskeySockets
4
+ Copyright (c) 2026 Lia Wynn
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  SOFTWARE.
@@ -1,4 +1,3 @@
1
- import { proto } from '../../WAProto/index.js';
2
1
  import type { SocketConfig } from '../Types';
3
2
  export declare const UNAUTHORIZED_CODES: number[];
4
3
  export declare const DEFAULT_ORIGIN = "https://web.whatsapp.com";
@@ -27,7 +26,7 @@ export declare const WA_CERT_DETAILS: {
27
26
  ISSUER: string;
28
27
  PUBLIC_KEY: Buffer<ArrayBuffer>;
29
28
  };
30
- export declare const PROCESSABLE_HISTORY_TYPES: proto.HistorySync.HistorySyncType[];
29
+ export declare const PROCESSABLE_HISTORY_TYPES: any[];
31
30
  export declare const DEFAULT_CACHE_TTLS: {
32
31
  SIGNAL_STORE: number;
33
32
  MSG_RETRY: number;
@@ -31,7 +31,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
31
31
  };
32
32
  issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
33
33
  assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
34
- relayMessage: (jid: string, message: import("../Types").WAProto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
34
+ relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
35
35
  sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types").MessageReceiptType) => Promise<void>;
36
36
  sendReceipts: (keys: import("../Types").WAMessageKey[], type: import("../Types").MessageReceiptType) => Promise<void>;
37
37
  readMessages: (keys: import("../Types").WAMessageKey[]) => Promise<void>;
@@ -41,8 +41,8 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
41
41
  fetchPrivacySettings: (force?: boolean) => Promise<{
42
42
  [_: string]: string;
43
43
  }>;
44
- sendPeerDataOperationMessage: (pdoMessage: import("../Types").WAProto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
45
- createParticipantNodes: (recipientJids: string[], message: import("../Types").WAProto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: import("../Types").WAProto.IMessage) => Promise<{
44
+ sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
45
+ createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
46
46
  nodes: BinaryNode[];
47
47
  shouldIncludeDeviceIdentity: boolean;
48
48
  }>;
@@ -50,8 +50,8 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
50
50
  jid: string;
51
51
  })[]>;
52
52
  updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
53
- updateMediaMessage: (message: import("../Types").WAMessage) => Promise<import("../Types").WAMessage>;
54
- sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<import("../Types").WAMessage>;
53
+ updateMediaMessage: (message: import("../Types").WAMessage) => Promise<any>;
54
+ sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
55
55
  newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
56
56
  newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
57
57
  newsletterSubscribers: (jid: string) => Promise<{
@@ -96,7 +96,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
96
96
  groupRevokeInvite: (jid: string) => Promise<string>;
97
97
  groupAcceptInvite: (code: string) => Promise<string>;
98
98
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
99
- groupAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<any>;
99
+ groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
100
100
  groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
101
101
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
102
102
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -126,7 +126,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
126
126
  notificationMutex: {
127
127
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
128
128
  };
129
- upsertMessage: (msg: import("../Types").WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
129
+ upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
130
130
  appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
131
131
  sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
132
132
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -156,7 +156,7 @@ export declare const makeBusinessSocket: (config: SocketConfig) => {
156
156
  resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
157
157
  chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
158
158
  cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
159
- addOrEditContact: (jid: string, contact: import("../Types").WAProto.SyncActionValue.IContactAction) => Promise<void>;
159
+ addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
160
160
  removeContact: (jid: string) => Promise<void>;
161
161
  placeholderResendCache: import("../Types").CacheStore;
162
162
  addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import { Boom } from '@hapi/boom';
2
2
  import { proto } from '../../WAProto/index.js';
3
- import type { BotListInfo, CacheStore, ChatModification, MessageUpsertType, SocketConfig, WABusinessProfile, WAMediaUpload, WAMessage, WAPatchCreate, WAPresence, WAPrivacyCallValue, WAPrivacyGroupAddValue, WAPrivacyMessagesValue, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '../Types';
3
+ import type { BotListInfo, CacheStore, ChatModification, MessageUpsertType, SocketConfig, WABusinessProfile, WAMediaUpload, WAPatchCreate, WAPresence, WAPrivacyCallValue, WAPrivacyGroupAddValue, WAPrivacyMessagesValue, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '../Types';
4
4
  import type { QuickReplyAction } from '../Types/Bussines.js';
5
5
  import type { LabelActionBody } from '../Types/Label';
6
6
  import { type BinaryNode } from '../WABinary';
@@ -34,7 +34,7 @@ export declare const makeChatsSocket: (config: SocketConfig) => {
34
34
  fetchPrivacySettings: (force?: boolean) => Promise<{
35
35
  [_: string]: string;
36
36
  }>;
37
- upsertMessage: (msg: WAMessage, type: MessageUpsertType) => Promise<void>;
37
+ upsertMessage: (msg: any, type: MessageUpsertType) => Promise<void>;
38
38
  appPatch: (patchCreate: WAPatchCreate) => Promise<void>;
39
39
  sendPresenceUpdate: (type: WAPresence, toJid?: string) => Promise<void>;
40
40
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -42,7 +42,7 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
42
42
  * @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite
43
43
  * @param inviteMessage the message to accept
44
44
  */
45
- communityAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
45
+ communityAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
46
46
  communityGetInviteInfo: (code: string) => Promise<GroupMetadata>;
47
47
  communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
48
48
  communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -99,8 +99,8 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
99
99
  jid: string;
100
100
  })[]>;
101
101
  updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
102
- updateMediaMessage: (message: import("../Types").WAMessage) => Promise<import("../Types").WAMessage>;
103
- sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<import("../Types").WAMessage>;
102
+ updateMediaMessage: (message: import("../Types").WAMessage) => Promise<any>;
103
+ sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
104
104
  newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
105
105
  newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
106
106
  newsletterSubscribers: (jid: string) => Promise<{
@@ -145,7 +145,7 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
145
145
  groupRevokeInvite: (jid: string) => Promise<string>;
146
146
  groupAcceptInvite: (code: string) => Promise<string>;
147
147
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
148
- groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
148
+ groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
149
149
  groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
150
150
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
151
151
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -175,7 +175,7 @@ export declare const makeCommunitiesSocket: (config: SocketConfig) => {
175
175
  notificationMutex: {
176
176
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
177
177
  };
178
- upsertMessage: (msg: import("../Types").WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
178
+ upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
179
179
  appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
180
180
  sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
181
181
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import { Boom } from '@hapi/boom';
2
2
  import { proto } from '../../WAProto/index.js';
3
- import type { GroupMetadata, ParticipantAction, SocketConfig, WAMessageKey } from '../Types';
3
+ import type { GroupMetadata, ParticipantAction, SocketConfig } from '../Types';
4
4
  import { type BinaryNode } from '../WABinary';
5
5
  export declare const makeGroupsSocket: (config: SocketConfig) => {
6
6
  groupMetadata: (jid: string) => Promise<GroupMetadata>;
@@ -35,7 +35,7 @@ export declare const makeGroupsSocket: (config: SocketConfig) => {
35
35
  * @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite
36
36
  * @param inviteMessage the message to accept
37
37
  */
38
- groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
38
+ groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
39
39
  groupGetInviteInfo: (code: string) => Promise<GroupMetadata>;
40
40
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
41
41
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -68,7 +68,7 @@ export declare const makeGroupsSocket: (config: SocketConfig) => {
68
68
  fetchPrivacySettings: (force?: boolean) => Promise<{
69
69
  [_: string]: string;
70
70
  }>;
71
- upsertMessage: (msg: import("../Types").WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
71
+ upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
72
72
  appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
73
73
  sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
74
74
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -29,7 +29,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
29
29
  communityRevokeInvite: (jid: string) => Promise<string>;
30
30
  communityAcceptInvite: (code: string) => Promise<string>;
31
31
  communityRevokeInviteV4: (communityJid: string, invitedJid: string) => Promise<boolean>;
32
- communityAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<any>;
32
+ communityAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
33
33
  communityGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
34
34
  communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
35
35
  communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -67,7 +67,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
67
67
  };
68
68
  issuePrivacyTokens: (jids: string[], timestamp?: number) => Promise<any>;
69
69
  assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
70
- relayMessage: (jid: string, message: import("../Types").WAProto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
70
+ relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types").MessageRelayOptions) => Promise<string>;
71
71
  sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types").MessageReceiptType) => Promise<void>;
72
72
  sendReceipts: (keys: import("../Types").WAMessageKey[], type: import("../Types").MessageReceiptType) => Promise<void>;
73
73
  readMessages: (keys: import("../Types").WAMessageKey[]) => Promise<void>;
@@ -77,8 +77,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
77
77
  fetchPrivacySettings: (force?: boolean) => Promise<{
78
78
  [_: string]: string;
79
79
  }>;
80
- sendPeerDataOperationMessage: (pdoMessage: import("../Types").WAProto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
81
- createParticipantNodes: (recipientJids: string[], message: import("../Types").WAProto.IMessage, extraAttrs?: import("..").BinaryNode["attrs"], dsmMessage?: import("../Types").WAProto.IMessage) => Promise<{
80
+ sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
81
+ createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: import("..").BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{
82
82
  nodes: import("..").BinaryNode[];
83
83
  shouldIncludeDeviceIdentity: boolean;
84
84
  }>;
@@ -86,8 +86,8 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
86
86
  jid: string;
87
87
  })[]>;
88
88
  updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
89
- updateMediaMessage: (message: import("../Types").WAMessage) => Promise<import("../Types").WAMessage>;
90
- sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<import("../Types").WAMessage>;
89
+ updateMediaMessage: (message: import("../Types").WAMessage) => Promise<any>;
90
+ sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
91
91
  newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
92
92
  newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
93
93
  newsletterSubscribers: (jid: string) => Promise<{
@@ -132,7 +132,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
132
132
  groupRevokeInvite: (jid: string) => Promise<string>;
133
133
  groupAcceptInvite: (code: string) => Promise<string>;
134
134
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
135
- groupAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<any>;
135
+ groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
136
136
  groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
137
137
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
138
138
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -162,7 +162,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
162
162
  notificationMutex: {
163
163
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
164
164
  };
165
- upsertMessage: (msg: import("../Types").WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
165
+ upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
166
166
  appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
167
167
  sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
168
168
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -192,7 +192,7 @@ declare const makeWASocket: (config: UserFacingSocketConfig) => {
192
192
  resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
193
193
  chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
194
194
  cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
195
- addOrEditContact: (jid: string, contact: import("../Types").WAProto.SyncActionValue.IContactAction) => Promise<void>;
195
+ addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
196
196
  removeContact: (jid: string) => Promise<void>;
197
197
  placeholderResendCache: import("../Types").CacheStore;
198
198
  addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
@@ -36,8 +36,8 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
36
36
  jid: string;
37
37
  })[]>;
38
38
  updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
39
- updateMediaMessage: (message: WAMessage) => Promise<WAMessage>;
40
- sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<WAMessage>;
39
+ updateMediaMessage: (message: WAMessage) => Promise<any>;
40
+ sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<any>;
41
41
  newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
42
42
  newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
43
43
  newsletterSubscribers: (jid: string) => Promise<{
@@ -82,7 +82,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
82
82
  groupRevokeInvite: (jid: string) => Promise<string>;
83
83
  groupAcceptInvite: (code: string) => Promise<string>;
84
84
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
85
- groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
85
+ groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
86
86
  groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
87
87
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
88
88
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -112,7 +112,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
112
112
  notificationMutex: {
113
113
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
114
114
  };
115
- upsertMessage: (msg: WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
115
+ upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
116
116
  appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
117
117
  sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
118
118
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -32,8 +32,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
32
32
  })[]>;
33
33
  messageRetryManager: MessageRetryManager;
34
34
  updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
35
- updateMediaMessage: (message: WAMessage) => Promise<WAMessage>;
36
- sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise<WAMessage>;
35
+ updateMediaMessage: (message: WAMessage) => Promise<any>;
36
+ sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise<any>;
37
37
  newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
38
38
  newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
39
39
  newsletterSubscribers: (jid: string) => Promise<{
@@ -78,7 +78,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
78
78
  groupRevokeInvite: (jid: string) => Promise<string>;
79
79
  groupAcceptInvite: (code: string) => Promise<string>;
80
80
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
81
- groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
81
+ groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
82
82
  groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
83
83
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
84
84
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -108,7 +108,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
108
108
  notificationMutex: {
109
109
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
110
110
  };
111
- upsertMessage: (msg: WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
111
+ upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
112
112
  appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
113
113
  sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
114
114
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -45,7 +45,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
45
45
  groupRevokeInvite: (jid: string) => Promise<string>;
46
46
  groupAcceptInvite: (code: string) => Promise<string>;
47
47
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
48
- groupAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: import("../Types").WAProto.Message.IGroupInviteMessage) => Promise<any>;
48
+ groupAcceptInviteV4: (key: any, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
49
49
  groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
50
50
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
51
51
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
@@ -78,7 +78,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
78
78
  fetchPrivacySettings: (force?: boolean) => Promise<{
79
79
  [_: string]: string;
80
80
  }>;
81
- upsertMessage: (msg: import("../Types").WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
81
+ upsertMessage: (msg: any, type: import("../Types").MessageUpsertType) => Promise<void>;
82
82
  appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
83
83
  sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
84
84
  presenceSubscribe: (toJid: string) => Promise<void>;
@@ -108,7 +108,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
108
108
  resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
109
109
  chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
110
110
  cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
111
- addOrEditContact: (jid: string, contact: import("../Types").WAProto.SyncActionValue.IContactAction) => Promise<void>;
111
+ addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
112
112
  removeContact: (jid: string) => Promise<void>;
113
113
  placeholderResendCache: import("../Types").CacheStore;
114
114
  addLabel: (jid: string, labels: import("../Types/Label").LabelActionBody) => Promise<void>;
@@ -28,8 +28,8 @@ export type WATextMessage = proto.Message.IExtendedTextMessage;
28
28
  export type WAContextInfo = proto.IContextInfo;
29
29
  export type WALocationMessage = proto.Message.ILocationMessage;
30
30
  export type WAGenericMediaMessage = proto.Message.IVideoMessage | proto.Message.IImageMessage | proto.Message.IAudioMessage | proto.Message.IDocumentMessage | proto.Message.IStickerMessage;
31
- export declare const WAMessageStubType: typeof proto.WebMessageInfo.StubType;
32
- export declare const WAMessageStatus: typeof proto.WebMessageInfo.Status;
31
+ export declare const WAMessageStubType: any;
32
+ export declare const WAMessageStatus: any;
33
33
  import type { ILogger } from '../Utils/logger';
34
34
  export type WAMediaPayloadURL = {
35
35
  url: URL | string;
@@ -1,3 +1,3 @@
1
1
  import type { BrowsersMap } from '../Types';
2
2
  export declare const Browsers: BrowsersMap;
3
- export declare const getPlatformId: (browser: string) => string;
3
+ export declare const getPlatformId: (browser: string) => any;
@@ -85,7 +85,7 @@ export declare const extractSyncdPatches: (result: BinaryNode, options: RequestI
85
85
  };
86
86
  }>;
87
87
  export declare const downloadExternalBlob: (blob: proto.IExternalBlobReference, options: RequestInit) => Promise<Buffer<ArrayBuffer>>;
88
- export declare const downloadExternalPatch: (blob: proto.IExternalBlobReference, options: RequestInit) => Promise<proto.SyncdMutations>;
88
+ export declare const downloadExternalPatch: (blob: proto.IExternalBlobReference, options: RequestInit) => Promise<any>;
89
89
  export declare const decodeSyncdSnapshot: (name: WAPatchName, snapshot: proto.ISyncdSnapshot, getAppStateSyncKey: FetchAppStateSyncKey, minimumVersionNumber: number | undefined, validateMacs?: boolean, logger?: ILogger) => Promise<{
90
90
  state: LTHashState;
91
91
  mutationMap: ChatMutationMap;
@@ -4,13 +4,13 @@ export { md5, hkdf } from 'whatsapp-rust-bridge';
4
4
  export declare const generateSignalPubKey: (pubKey: Uint8Array | Buffer) => Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>;
5
5
  export declare const Curve: {
6
6
  generateKeyPair: () => KeyPair;
7
- sharedKey: (privateKey: Uint8Array, publicKey: Uint8Array) => Buffer<ArrayBuffer>;
8
- sign: (privateKey: Uint8Array, buf: Uint8Array) => Uint8Array<ArrayBufferLike>;
7
+ sharedKey: (privateKey: Uint8Array, publicKey: Uint8Array) => Buffer<any>;
8
+ sign: (privateKey: Uint8Array, buf: Uint8Array) => any;
9
9
  verify: (pubKey: Uint8Array, message: Uint8Array, signature: Uint8Array) => boolean;
10
10
  };
11
11
  export declare const signedKeyPair: (identityKeyPair: KeyPair, keyId: number) => {
12
12
  keyPair: KeyPair;
13
- signature: Uint8Array<ArrayBufferLike>;
13
+ signature: any;
14
14
  keyId: number;
15
15
  };
16
16
  /**
@@ -49,7 +49,7 @@ exports.derivePairingCodeKey = derivePairingCodeKey;
49
49
  const crypto_1 = require("crypto");
50
50
  const curve = __importStar(require("libsignal/src/curve"));
51
51
  const Defaults_1 = require("../Defaults");
52
- var whatsapp_rust_bridge_1 = require("whatsapp-rust-bridge");
52
+ var whatsapp_rust_bridge_1 = (() => { try { return require('whatsapp-rust-bridge'); } catch(e) { return { generateSignalPubKey: () => { throw new Error('rust-bridge not needed'); } }; } })();
53
53
  Object.defineProperty(exports, "md5", { enumerable: true, get: function () { return whatsapp_rust_bridge_1.md5; } });
54
54
  Object.defineProperty(exports, "hkdf", { enumerable: true, get: function () { return whatsapp_rust_bridge_1.hkdf; } });
55
55
  // insure browser & node compatibility
@@ -1,4 +1,3 @@
1
- import type { WAMessage } from '../Types';
2
1
  import type { SignalRepositoryWithLIDStore } from '../Types/Signal';
3
2
  import { type BinaryNode } from '../WABinary';
4
3
  import type { ILogger } from './logger';
@@ -53,12 +52,12 @@ export declare const extractAddressingContext: (stanza: BinaryNode) => {
53
52
  * @note this will only parse the message, not decrypt it
54
53
  */
55
54
  export declare function decodeMessageNode(stanza: BinaryNode, meId: string, meLid: string): {
56
- fullMessage: WAMessage;
55
+ fullMessage: any;
57
56
  author: string;
58
57
  sender: string;
59
58
  };
60
59
  export declare const decryptMessageNode: (stanza: BinaryNode, meId: string, meLid: string, repository: SignalRepositoryWithLIDStore, logger: ILogger) => {
61
- fullMessage: WAMessage;
60
+ fullMessage: any;
62
61
  category: string;
63
62
  author: string;
64
63
  decrypt(): Promise<void>;
@@ -6,7 +6,7 @@ export declare const BufferJSON: {
6
6
  replacer: (k: any, value: any) => any;
7
7
  reviver: (_: any, value: any) => any;
8
8
  };
9
- export declare const getKeyAuthor: (key: WAMessageKey | undefined | null, meId?: string) => string;
9
+ export declare const getKeyAuthor: (key: WAMessageKey | undefined | null, meId?: string) => any;
10
10
  export declare const isStringNullOrEmpty: (value: string | null | undefined) => value is null | undefined | "";
11
11
  export declare const writeRandomPadMax16: (msg: Uint8Array) => Buffer<ArrayBuffer>;
12
12
  export declare const unpadRandomMax16: (e: Uint8Array | Buffer) => Uint8Array<ArrayBuffer>;
@@ -66,7 +66,7 @@ export declare const generateMdTagPrefix: () => string;
66
66
  * Given a type of receipt, returns what the new status of the message should be
67
67
  * @param type type from receipt
68
68
  */
69
- export declare const getStatusFromReceiptType: (type: string | undefined) => proto.WebMessageInfo.Status;
69
+ export declare const getStatusFromReceiptType: (type: string | undefined) => any;
70
70
  /**
71
71
  * Stream errors generally provide a reason, map that to a baileys DisconnectReason
72
72
  * @param reason the string reason given, eg. "conflict"
@@ -1,23 +1,23 @@
1
1
  import { proto } from '../../WAProto/index.js';
2
- import type { Chat, Contact, LIDMapping, WAMessage } from '../Types';
2
+ import type { Contact, LIDMapping } from '../Types';
3
3
  import type { ILogger } from './logger.js';
4
- export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification, options: RequestInit) => Promise<proto.HistorySync>;
4
+ export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification, options: RequestInit) => Promise<any>;
5
5
  export declare const processHistoryMessage: (item: proto.IHistorySync, logger?: ILogger) => {
6
- chats: Chat[];
6
+ chats: any[];
7
7
  contacts: Contact[];
8
- messages: WAMessage[];
8
+ messages: any[];
9
9
  lidPnMappings: LIDMapping[];
10
- pastParticipants: proto.IPastParticipants[];
11
- syncType: proto.HistorySync.HistorySyncType;
12
- progress: number;
10
+ pastParticipants: any;
11
+ syncType: any;
12
+ progress: any;
13
13
  };
14
14
  export declare const downloadAndProcessHistorySyncNotification: (msg: proto.Message.IHistorySyncNotification, options: RequestInit, logger?: ILogger) => Promise<{
15
- chats: Chat[];
15
+ chats: any[];
16
16
  contacts: Contact[];
17
- messages: WAMessage[];
17
+ messages: any[];
18
18
  lidPnMappings: LIDMapping[];
19
- pastParticipants: proto.IPastParticipants[];
20
- syncType: proto.HistorySync.HistorySyncType;
21
- progress: number;
19
+ pastParticipants: any;
20
+ syncType: any;
21
+ progress: any;
22
22
  }>;
23
- export declare const getHistoryMsg: (message: proto.IMessage) => proto.Message.IHistorySyncNotification;
23
+ export declare const getHistoryMsg: (message: proto.IMessage) => any;
@@ -2,7 +2,6 @@ import { Boom } from '@hapi/boom';
2
2
  import type { Agent } from 'https';
3
3
  import { Readable, Transform } from 'stream';
4
4
  import { URL } from 'url';
5
- import { proto } from '../../WAProto/index.js';
6
5
  import { type MediaType } from '../Defaults';
7
6
  import type { DownloadableMessage, MediaConnInfo, MediaDecryptionKeyInfo, SocketConfig, WAMediaUpload, WAMediaUploadFunction, WAMessageContent, WAMessageKey } from '../Types';
8
7
  import { type BinaryNode } from '../WABinary';
@@ -127,6 +126,6 @@ export declare const decodeMediaRetryNode: (node: BinaryNode) => {
127
126
  export declare const decryptMediaRetryData: ({ ciphertext, iv }: {
128
127
  ciphertext: Uint8Array;
129
128
  iv: Uint8Array;
130
- }, mediaKey: Uint8Array, msgId: string) => proto.MediaRetryNotification;
129
+ }, mediaKey: Uint8Array, msgId: string) => any;
131
130
  export declare const getStatusCodeForMediaRetry: (code: number) => 200 | 412 | 404 | 418;
132
131
  export {};
@@ -11,20 +11,20 @@ type ExtractByKey<T, K extends PropertyKey> = T extends Record<K, any> ? T : nev
11
11
  */
12
12
  export declare const extractUrlFromText: (text: string) => string;
13
13
  export declare const generateLinkPreviewIfRequired: (text: string, getUrlInfo: MessageGenerationOptions["getUrlInfo"], logger: MessageGenerationOptions["logger"]) => Promise<import("../Types").WAUrlInfo>;
14
- export declare const prepareWAMessageMedia: (message: AnyMediaMessageContent, options: MessageContentGenerationOptions) => Promise<proto.Message>;
15
- export declare const prepareDisappearingMessageSettingContent: (ephemeralExpiration?: number) => proto.Message;
14
+ export declare const prepareWAMessageMedia: (message: AnyMediaMessageContent, options: MessageContentGenerationOptions) => Promise<any>;
15
+ export declare const prepareDisappearingMessageSettingContent: (ephemeralExpiration?: number) => any;
16
16
  /**
17
17
  * Generate forwarded message content like WA does
18
18
  * @param message the message to forward
19
19
  * @param options.forceForward will show the message as forwarded even if it is from you
20
20
  */
21
- export declare const generateForwardMessageContent: (message: WAMessage, forceForward?: boolean) => proto.IMessage;
21
+ export declare const generateForwardMessageContent: (message: WAMessage, forceForward?: boolean) => any;
22
22
  export declare const hasNonNullishProperty: <K extends PropertyKey>(message: AnyMessageContent, key: K) => message is ExtractByKey<AnyMessageContent, K>;
23
- export declare const generateWAMessageContent: (message: AnyMessageContent, options: MessageContentGenerationOptions) => Promise<proto.Message>;
23
+ export declare const generateWAMessageContent: (message: AnyMessageContent, options: MessageContentGenerationOptions) => Promise<any>;
24
24
  export declare const generateWAMessageFromContent: (jid: string, message: WAMessageContent, options: MessageGenerationOptionsFromContent) => WAMessage;
25
- export declare const generateWAMessage: (jid: string, content: AnyMessageContent, options: MessageGenerationOptions) => Promise<WAMessage>;
25
+ export declare const generateWAMessage: (jid: string, content: AnyMessageContent, options: MessageGenerationOptions) => Promise<any>;
26
26
  /** Get the key to access the true type of content */
27
- export declare const getContentType: (content: proto.IMessage | undefined) => keyof proto.IMessage;
27
+ export declare const getContentType: (content: proto.IMessage | undefined) => string | number | symbol;
28
28
  /**
29
29
  * Normalizes ephemeral, view once messages to regular message content
30
30
  * Eg. image messages in ephemeral messages, in view once messages etc.
@@ -49,17 +49,13 @@ export declare const updateMessageWithReaction: (msg: Pick<WAMessage, "reactions
49
49
  export declare const updateMessageWithPollUpdate: (msg: Pick<WAMessage, "pollUpdates">, update: proto.IPollUpdate) => void;
50
50
  /** Update the message with a new event response */
51
51
  export declare const updateMessageWithEventResponse: (msg: Pick<WAMessage, "eventResponses">, update: proto.IEventResponse) => void;
52
- type VoteAggregation = {
53
- name: string;
54
- voters: string[];
55
- };
56
52
  /**
57
53
  * Aggregates all poll updates in a poll.
58
54
  * @param msg the poll creation message
59
55
  * @param meId your jid
60
56
  * @returns A list of options & their voters
61
57
  */
62
- export declare function getAggregateVotesInPollMessage({ message, pollUpdates }: Pick<WAMessage, 'pollUpdates' | 'message'>, meId?: string): VoteAggregation[];
58
+ export declare function getAggregateVotesInPollMessage({ message, pollUpdates }: Pick<WAMessage, 'pollUpdates' | 'message'>, meId?: string): unknown[];
63
59
  type ResponseAggregation = {
64
60
  response: string;
65
61
  responders: string[];
@@ -86,5 +82,5 @@ type DownloadMediaMessageContext = {
86
82
  */
87
83
  export declare const downloadMediaMessage: <Type extends "buffer" | "stream">(message: WAMessage, type: Type, options: MediaDownloadOptions, ctx?: DownloadMediaMessageContext) => Promise<Type extends "buffer" ? Buffer<ArrayBufferLike> : Transform>;
88
84
  /** Checks whether the given message is a media message; if it is returns the inner content */
89
- export declare const assertMediaContent: (content: proto.IMessage | null | undefined) => proto.Message.IVideoMessage | proto.Message.IImageMessage | proto.Message.IAudioMessage | proto.Message.IDocumentMessage | proto.Message.IStickerMessage;
85
+ export declare const assertMediaContent: (content: proto.IMessage | null | undefined) => any;
90
86
  export {};
@@ -47,13 +47,13 @@ type EventContext = {
47
47
  * @param ctx additional info about the poll required for decryption
48
48
  * @returns list of SHA256 options
49
49
  */
50
- export declare function decryptPollVote({ encPayload, encIv }: proto.Message.IPollEncValue, { pollCreatorJid, pollMsgId, pollEncKey, voterJid }: PollContext): proto.Message.PollVoteMessage;
50
+ export declare function decryptPollVote({ encPayload, encIv }: proto.Message.IPollEncValue, { pollCreatorJid, pollMsgId, pollEncKey, voterJid }: PollContext): any;
51
51
  /**
52
52
  * Decrypt an event response
53
53
  * @param response encrypted event response
54
54
  * @param ctx additional info about the event required for decryption
55
55
  * @returns event response message
56
56
  */
57
- export declare function decryptEventResponse({ encPayload, encIv }: proto.Message.IPollEncValue, { eventCreatorJid, eventMsgId, eventEncKey, responderJid }: EventContext): proto.Message.EventResponseMessage;
57
+ export declare function decryptEventResponse({ encPayload, encIv }: proto.Message.IPollEncValue, { eventCreatorJid, eventMsgId, eventEncKey, responderJid }: EventContext): any;
58
58
  declare const processMessage: (message: WAMessage, { shouldProcessHistoryMsg, placeholderResendCache, ev, creds, signalRepository, keyStore, logger, options, getMessage }: ProcessMessageContext) => Promise<void>;
59
59
  export default processMessage;
@@ -2,9 +2,9 @@ import { proto } from '../../WAProto/index.js';
2
2
  import type { AuthenticationCreds, SignalCreds, SocketConfig } from '../Types';
3
3
  import { type BinaryNode } from '../WABinary';
4
4
  export declare const generateLoginNode: (userJid: string, config: SocketConfig) => proto.IClientPayload;
5
- export declare const generateRegistrationNode: ({ registrationId, signedPreKey, signedIdentityKey }: SignalCreds, config: SocketConfig) => proto.ClientPayload;
5
+ export declare const generateRegistrationNode: ({ registrationId, signedPreKey, signedIdentityKey }: SignalCreds, config: SocketConfig) => any;
6
6
  export declare const configureSuccessfulPairing: (stanza: BinaryNode, { advSecretKey, signedIdentityKey, signalIdentities }: Pick<AuthenticationCreds, "advSecretKey" | "signedIdentityKey" | "signalIdentities">) => {
7
7
  creds: Partial<AuthenticationCreds>;
8
8
  reply: BinaryNode;
9
9
  };
10
- export declare const encodeSignedDeviceIdentity: (account: proto.IADVSignedDeviceIdentity, includeSignatureKey: boolean) => Uint8Array<ArrayBufferLike>;
10
+ export declare const encodeSignedDeviceIdentity: (account: proto.IADVSignedDeviceIdentity, includeSignatureKey: boolean) => any;
@@ -1,4 +1,3 @@
1
- import { proto } from '../../WAProto/index.js';
2
1
  import { type BinaryNode } from './types';
3
2
  export declare const getBinaryNodeChildren: (node: BinaryNode | undefined, childTag: string) => BinaryNode[];
4
3
  export declare const getBinaryNodeChild: (node: BinaryNode | undefined, childTag: string) => BinaryNode;