@arcaelas/whatsapp 1.4.0 → 2.1.0

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 (41) hide show
  1. package/build/cjs/Chat.d.ts +199 -217
  2. package/build/cjs/Chat.js +151 -274
  3. package/build/cjs/Chat.js.map +1 -1
  4. package/build/cjs/Contact.d.ts +455 -148
  5. package/build/cjs/Contact.js +74 -103
  6. package/build/cjs/Contact.js.map +1 -1
  7. package/build/cjs/Message.d.ts +587 -265
  8. package/build/cjs/Message.js +304 -254
  9. package/build/cjs/Message.js.map +1 -1
  10. package/build/cjs/WhatsApp.d.ts +19 -7
  11. package/build/cjs/WhatsApp.js +88 -80
  12. package/build/cjs/WhatsApp.js.map +1 -1
  13. package/build/cjs/index.d.ts +2 -2
  14. package/build/cjs/store/driver/FileEngine.d.ts +13 -2
  15. package/build/cjs/store/driver/FileEngine.js +15 -19
  16. package/build/cjs/store/driver/FileEngine.js.map +1 -1
  17. package/build/cjs/store/driver/RedisEngine.d.ts +13 -4
  18. package/build/cjs/store/driver/RedisEngine.js +23 -22
  19. package/build/cjs/store/driver/RedisEngine.js.map +1 -1
  20. package/build/cjs/store/engine.d.ts +9 -10
  21. package/build/esm/Chat.d.ts +199 -217
  22. package/build/esm/Chat.js +151 -273
  23. package/build/esm/Chat.js.map +1 -1
  24. package/build/esm/Contact.d.ts +455 -148
  25. package/build/esm/Contact.js +74 -102
  26. package/build/esm/Contact.js.map +1 -1
  27. package/build/esm/Message.d.ts +587 -265
  28. package/build/esm/Message.js +305 -254
  29. package/build/esm/Message.js.map +1 -1
  30. package/build/esm/WhatsApp.d.ts +19 -7
  31. package/build/esm/WhatsApp.js +91 -83
  32. package/build/esm/WhatsApp.js.map +1 -1
  33. package/build/esm/index.d.ts +2 -2
  34. package/build/esm/store/driver/FileEngine.d.ts +13 -2
  35. package/build/esm/store/driver/FileEngine.js +15 -19
  36. package/build/esm/store/driver/FileEngine.js.map +1 -1
  37. package/build/esm/store/driver/RedisEngine.d.ts +13 -4
  38. package/build/esm/store/driver/RedisEngine.js +23 -22
  39. package/build/esm/store/driver/RedisEngine.js.map +1 -1
  40. package/build/esm/store/engine.d.ts +9 -10
  41. package/package.json +2 -2
@@ -5,331 +5,313 @@
5
5
  import type { WhatsApp } from './WhatsApp';
6
6
  /**
7
7
  * @description Participante de grupo.
8
+ * Group participant.
8
9
  */
9
10
  export interface IGroupParticipant {
10
- /** JID del participante */
11
+ /** JID del participante / Participant JID */
11
12
  id: string;
12
- /** Rol de admin: null, 'admin', 'superadmin' */
13
+ /** Rol de admin: null, 'admin', 'superadmin' / Admin role */
13
14
  admin: string | null;
14
15
  }
15
16
  /**
16
17
  * @description Objeto raw del chat (protocolo).
18
+ * Raw chat object (protocol).
17
19
  */
18
20
  export interface IChatRaw {
19
- /** JID único del chat */
21
+ /** JID único del chat / Unique chat JID */
20
22
  id: string;
21
- /** Nombre del chat o grupo */
23
+ /** Nombre del chat o grupo / Chat or group name */
22
24
  name?: string | null;
23
- /** Nombre alternativo para mostrar */
25
+ /** Nombre alternativo para mostrar / Alternative display name */
24
26
  displayName?: string | null;
25
- /** Descripción del grupo */
27
+ /** Descripción del grupo / Group description */
26
28
  description?: string | null;
27
- /** Cantidad de mensajes no leídos */
29
+ /** Cantidad de mensajes no leídos / Unread message count */
28
30
  unreadCount?: number | null;
29
- /** Si el chat es de solo lectura */
31
+ /** Si el chat es de solo lectura / Whether the chat is read-only */
30
32
  readOnly?: boolean | null;
31
- /** Si el chat está archivado */
33
+ /** Si el chat está archivado / Whether the chat is archived */
32
34
  archived?: boolean | null;
33
- /** Timestamp cuando se fijó el chat */
35
+ /** Timestamp cuando se fijó el chat / Pin timestamp */
34
36
  pinned?: number | null;
35
- /** Timestamp cuando expira el silencio */
37
+ /** Timestamp cuando expira el silencio / Mute end timestamp */
36
38
  muteEndTime?: number | null;
37
- /** Si fue marcado manualmente como no leído */
39
+ /** Si fue marcado manualmente como no leído / Whether manually marked as unread */
38
40
  markedAsUnread?: boolean | null;
39
- /** Lista de participantes del grupo */
41
+ /** Lista de participantes del grupo / Group participant list */
40
42
  participant?: IGroupParticipant[] | null;
41
- /** JID del creador del grupo */
43
+ /** JID del creador del grupo / Group creator JID */
42
44
  createdBy?: string | null;
43
- /** Timestamp de creación */
45
+ /** Timestamp de creación / Creation timestamp */
44
46
  createdAt?: number | null;
45
- /** Duración de mensajes temporales (segundos) */
47
+ /** Duración de mensajes temporales (segundos) / Ephemeral message duration (seconds) */
46
48
  ephemeralExpiration?: number | null;
47
49
  }
48
- /**
49
- * @description Datos persistidos de un chat.
50
- */
51
- export interface IChat {
52
- /** JID del chat (ej: 123456@s.whatsapp.net o grupo@g.us) */
53
- id: string;
54
- /** Tipo de chat: contacto individual o grupo */
55
- type: 'contact' | 'group';
56
- /** Nombre del chat o contacto */
57
- name: string;
58
- /** Descripción del chat/grupo */
59
- content: string;
60
- /** Si está fijado */
61
- pined: boolean;
62
- /** Si está archivado */
63
- archived: boolean;
64
- /** Timestamp cuando expira el silencio o false */
65
- muted: number | false;
66
- /** Si está leído */
67
- readed: boolean;
68
- /** Si es solo lectura */
69
- readonly: boolean;
70
- /** Etiquetas del chat */
71
- labels: string[];
72
- /** Objeto raw del protocolo */
73
- raw: IChatRaw;
74
- }
75
- /**
76
- * @description Construye IChat desde raw.
77
- * @param raw Objeto raw del chat.
78
- * @returns IChat normalizado.
79
- */
80
- export declare function build_chat(raw: IChatRaw): IChat;
81
50
  /**
82
51
  * @description
83
52
  * Clase base para representar una conversación de WhatsApp.
84
- * Usar Chat.get() para obtener instancias.
53
+ * Base class representing a WhatsApp conversation.
85
54
  */
86
55
  export declare class Chat {
87
56
  readonly raw: IChatRaw;
88
- constructor(data: IChat);
89
- /** JID único del chat */
57
+ constructor(raw: IChatRaw);
58
+ /** JID único del chat / Unique chat JID */
90
59
  get id(): string;
91
- /** Tipo de chat */
60
+ /** Tipo de chat / Chat type */
92
61
  get type(): 'contact' | 'group';
93
- /** Nombre del chat */
62
+ /** Nombre del chat / Chat name */
94
63
  get name(): string;
95
- /** Descripción del chat/grupo */
64
+ /** Descripción del chat/grupo / Chat/group description */
96
65
  get content(): string;
97
- /** Si está fijado */
98
- get pined(): boolean;
99
- /** Si está archivado */
66
+ /** Si está fijado / Whether it's pinned */
67
+ get pinned(): boolean;
68
+ /** Si está archivado / Whether it's archived */
100
69
  get archived(): boolean;
101
- /** Timestamp cuando expira el silencio o false */
102
- get muted(): number | false;
103
- /** Si está leído */
104
- get readed(): boolean;
105
- /** Si es solo lectura */
70
+ /** Timestamp cuando expira el silencio (0 = no silenciado) / Mute end timestamp (0 = not muted) */
71
+ get muted(): number;
72
+ /** Si está leído / Whether it's read */
73
+ get read(): boolean;
74
+ /** Si es solo lectura / Whether it's read-only */
106
75
  get readonly(): boolean;
107
76
  }
108
77
  /**
109
78
  * @description Factory que retorna la clase Chat enlazada al contexto.
79
+ * Factory that returns the Chat class bound to context.
110
80
  * @param wa Instancia de WhatsApp.
111
- * @returns Clase _Chat que extiende Chat.
112
81
  */
113
82
  export declare function chat(wa: WhatsApp): {
114
- new (data: IChat): {
83
+ new (raw: IChatRaw): {
84
+ /**
85
+ * @description Actualiza los datos del chat desde WhatsApp.
86
+ * Refreshes chat data from WhatsApp.
87
+ */
88
+ refresh(): Promise</*elided*/ any | null>;
89
+ /**
90
+ * @description Elimina el chat con cascade delete.
91
+ * Deletes the chat with cascade delete.
92
+ */
93
+ remove(): Promise<boolean>;
94
+ /**
95
+ * @description Fija o desfija el chat.
96
+ * Pins or unpins the chat.
97
+ */
98
+ pin(value: boolean): Promise<boolean>;
99
+ /**
100
+ * @description Archiva o desarchiva el chat.
101
+ * Archives or unarchives the chat.
102
+ */
103
+ archive(value: boolean): Promise<boolean>;
104
+ /**
105
+ * @description Silencia o quita silencio del chat.
106
+ * Mutes or unmutes the chat.
107
+ * @param duration Duración en ms (0 o null para quitar silencio) / Duration in ms (0 or null to unmute).
108
+ */
109
+ mute(duration: number | null): Promise<boolean>;
110
+ /**
111
+ * @description Marca el chat como leído.
112
+ * Marks the chat as read.
113
+ */
114
+ seen(): Promise<boolean>;
115
+ /**
116
+ * @description Obtiene los miembros del chat.
117
+ * Gets chat members.
118
+ */
119
+ members(offset?: number, limit?: number): Promise<InstanceType<typeof wa.Contact>[]>;
115
120
  /**
116
121
  * @description Obtiene mensajes del chat (paginados).
117
- * @param offset Inicio de paginación.
118
- * @param limit Cantidad máxima de resultados.
119
- * @returns Array de mensajes.
122
+ * Gets chat messages (paginated).
120
123
  */
121
124
  messages(offset?: number, limit?: number): Promise<InstanceType<typeof wa.Message>[]>;
122
125
  /**
123
- * @description Actualiza los datos del chat desde WhatsApp.
124
- * @returns this con datos actualizados, o null si falla.
126
+ * @description Obtiene el contacto asociado al chat (solo chats individuales).
127
+ * Gets the contact associated with the chat (individual chats only).
125
128
  */
126
- refresh(): Promise</*elided*/ any | null>;
129
+ contact(): Promise<InstanceType<typeof wa.Contact> | null>;
127
130
  readonly raw: IChatRaw;
128
- /** JID único del chat */
131
+ /** JID único del chat / Unique chat JID */
129
132
  get id(): string;
130
- /** Tipo de chat */
133
+ /** Tipo de chat / Chat type */
131
134
  get type(): "contact" | "group";
132
- /** Nombre del chat */
135
+ /** Nombre del chat / Chat name */
133
136
  get name(): string;
134
- /** Descripción del chat/grupo */
137
+ /** Descripción del chat/grupo / Chat/group description */
135
138
  get content(): string;
136
- /** Si está fijado */
137
- get pined(): boolean;
138
- /** Si está archivado */
139
+ /** Si está fijado / Whether it's pinned */
140
+ get pinned(): boolean;
141
+ /** Si está archivado / Whether it's archived */
139
142
  get archived(): boolean;
140
- /** Timestamp cuando expira el silencio o false */
141
- get muted(): number | false;
142
- /** Si está leído */
143
- get readed(): boolean;
144
- /** Si es solo lectura */
143
+ /** Timestamp cuando expira el silencio (0 = no silenciado) / Mute end timestamp (0 = not muted) */
144
+ get muted(): number;
145
+ /** Si está leído / Whether it's read */
146
+ get read(): boolean;
147
+ /** Si es solo lectura / Whether it's read-only */
145
148
  get readonly(): boolean;
146
149
  };
147
150
  /**
148
151
  * @description Obtiene un chat por su ID.
149
- * @param cid ID del chat (JID).
150
- * @returns Chat o null si no existe.
152
+ * Retrieves a chat by its ID.
151
153
  */
152
154
  get(cid: string): Promise<{
153
- /**
154
- * @description Obtiene mensajes del chat (paginados).
155
- * @param offset Inicio de paginación.
156
- * @param limit Cantidad máxima de resultados.
157
- * @returns Array de mensajes.
158
- */
159
- messages(offset?: number, limit?: number): Promise<InstanceType<typeof wa.Message>[]>;
160
155
  /**
161
156
  * @description Actualiza los datos del chat desde WhatsApp.
162
- * @returns this con datos actualizados, o null si falla.
157
+ * Refreshes chat data from WhatsApp.
163
158
  */
164
159
  refresh(): Promise</*elided*/ any | null>;
165
- readonly raw: IChatRaw;
166
- /** JID único del chat */
167
- get id(): string;
168
- /** Tipo de chat */
169
- get type(): "contact" | "group";
170
- /** Nombre del chat */
171
- get name(): string;
172
- /** Descripción del chat/grupo */
173
- get content(): string;
174
- /** Si está fijado */
175
- get pined(): boolean;
176
- /** Si está archivado */
177
- get archived(): boolean;
178
- /** Timestamp cuando expira el silencio o false */
179
- get muted(): number | false;
180
- /** Si está leído */
181
- get readed(): boolean;
182
- /** Si es solo lectura */
183
- get readonly(): boolean;
184
- } | null>;
185
- /**
186
- * @description Actualiza los datos del chat desde WhatsApp.
187
- * @param cid ID del chat.
188
- * @returns Chat actualizado o null.
189
- */
190
- refresh(cid: string): Promise<{
160
+ /**
161
+ * @description Elimina el chat con cascade delete.
162
+ * Deletes the chat with cascade delete.
163
+ */
164
+ remove(): Promise<boolean>;
165
+ /**
166
+ * @description Fija o desfija el chat.
167
+ * Pins or unpins the chat.
168
+ */
169
+ pin(value: boolean): Promise<boolean>;
170
+ /**
171
+ * @description Archiva o desarchiva el chat.
172
+ * Archives or unarchives the chat.
173
+ */
174
+ archive(value: boolean): Promise<boolean>;
175
+ /**
176
+ * @description Silencia o quita silencio del chat.
177
+ * Mutes or unmutes the chat.
178
+ * @param duration Duración en ms (0 o null para quitar silencio) / Duration in ms (0 or null to unmute).
179
+ */
180
+ mute(duration: number | null): Promise<boolean>;
181
+ /**
182
+ * @description Marca el chat como leído.
183
+ * Marks the chat as read.
184
+ */
185
+ seen(): Promise<boolean>;
186
+ /**
187
+ * @description Obtiene los miembros del chat.
188
+ * Gets chat members.
189
+ */
190
+ members(offset?: number, limit?: number): Promise<InstanceType<typeof wa.Contact>[]>;
191
191
  /**
192
192
  * @description Obtiene mensajes del chat (paginados).
193
- * @param offset Inicio de paginación.
194
- * @param limit Cantidad máxima de resultados.
195
- * @returns Array de mensajes.
193
+ * Gets chat messages (paginated).
196
194
  */
197
195
  messages(offset?: number, limit?: number): Promise<InstanceType<typeof wa.Message>[]>;
198
196
  /**
199
- * @description Actualiza los datos del chat desde WhatsApp.
200
- * @returns this con datos actualizados, o null si falla.
197
+ * @description Obtiene el contacto asociado al chat (solo chats individuales).
198
+ * Gets the contact associated with the chat (individual chats only).
201
199
  */
202
- refresh(): Promise</*elided*/ any | null>;
200
+ contact(): Promise<InstanceType<typeof wa.Contact> | null>;
203
201
  readonly raw: IChatRaw;
204
- /** JID único del chat */
202
+ /** JID único del chat / Unique chat JID */
205
203
  get id(): string;
206
- /** Tipo de chat */
204
+ /** Tipo de chat / Chat type */
207
205
  get type(): "contact" | "group";
208
- /** Nombre del chat */
206
+ /** Nombre del chat / Chat name */
209
207
  get name(): string;
210
- /** Descripción del chat/grupo */
208
+ /** Descripción del chat/grupo / Chat/group description */
211
209
  get content(): string;
212
- /** Si está fijado */
213
- get pined(): boolean;
214
- /** Si está archivado */
210
+ /** Si está fijado / Whether it's pinned */
211
+ get pinned(): boolean;
212
+ /** Si está archivado / Whether it's archived */
215
213
  get archived(): boolean;
216
- /** Timestamp cuando expira el silencio o false */
217
- get muted(): number | false;
218
- /** Si está leído */
219
- get readed(): boolean;
220
- /** Si es solo lectura */
214
+ /** Timestamp cuando expira el silencio (0 = no silenciado) / Mute end timestamp (0 = not muted) */
215
+ get muted(): number;
216
+ /** Si está leído / Whether it's read */
217
+ get read(): boolean;
218
+ /** Si es solo lectura / Whether it's read-only */
221
219
  get readonly(): boolean;
222
220
  } | null>;
223
221
  /**
224
222
  * @description Obtiene chats paginados.
225
- * @param offset Inicio de paginación.
226
- * @param limit Cantidad máxima de resultados.
227
- * @returns Array de chats.
223
+ * Retrieves paginated chats.
228
224
  */
229
- paginate(offset?: number, limit?: number): Promise<{
225
+ list(offset?: number, limit?: number): Promise<{
226
+ /**
227
+ * @description Actualiza los datos del chat desde WhatsApp.
228
+ * Refreshes chat data from WhatsApp.
229
+ */
230
+ refresh(): Promise</*elided*/ any | null>;
231
+ /**
232
+ * @description Elimina el chat con cascade delete.
233
+ * Deletes the chat with cascade delete.
234
+ */
235
+ remove(): Promise<boolean>;
236
+ /**
237
+ * @description Fija o desfija el chat.
238
+ * Pins or unpins the chat.
239
+ */
240
+ pin(value: boolean): Promise<boolean>;
241
+ /**
242
+ * @description Archiva o desarchiva el chat.
243
+ * Archives or unarchives the chat.
244
+ */
245
+ archive(value: boolean): Promise<boolean>;
246
+ /**
247
+ * @description Silencia o quita silencio del chat.
248
+ * Mutes or unmutes the chat.
249
+ * @param duration Duración en ms (0 o null para quitar silencio) / Duration in ms (0 or null to unmute).
250
+ */
251
+ mute(duration: number | null): Promise<boolean>;
252
+ /**
253
+ * @description Marca el chat como leído.
254
+ * Marks the chat as read.
255
+ */
256
+ seen(): Promise<boolean>;
257
+ /**
258
+ * @description Obtiene los miembros del chat.
259
+ * Gets chat members.
260
+ */
261
+ members(offset?: number, limit?: number): Promise<InstanceType<typeof wa.Contact>[]>;
230
262
  /**
231
263
  * @description Obtiene mensajes del chat (paginados).
232
- * @param offset Inicio de paginación.
233
- * @param limit Cantidad máxima de resultados.
234
- * @returns Array de mensajes.
264
+ * Gets chat messages (paginated).
235
265
  */
236
266
  messages(offset?: number, limit?: number): Promise<InstanceType<typeof wa.Message>[]>;
237
267
  /**
238
- * @description Actualiza los datos del chat desde WhatsApp.
239
- * @returns this con datos actualizados, o null si falla.
268
+ * @description Obtiene el contacto asociado al chat (solo chats individuales).
269
+ * Gets the contact associated with the chat (individual chats only).
240
270
  */
241
- refresh(): Promise</*elided*/ any | null>;
271
+ contact(): Promise<InstanceType<typeof wa.Contact> | null>;
242
272
  readonly raw: IChatRaw;
243
- /** JID único del chat */
273
+ /** JID único del chat / Unique chat JID */
244
274
  get id(): string;
245
- /** Tipo de chat */
275
+ /** Tipo de chat / Chat type */
246
276
  get type(): "contact" | "group";
247
- /** Nombre del chat */
277
+ /** Nombre del chat / Chat name */
248
278
  get name(): string;
249
- /** Descripción del chat/grupo */
279
+ /** Descripción del chat/grupo / Chat/group description */
250
280
  get content(): string;
251
- /** Si está fijado */
252
- get pined(): boolean;
253
- /** Si está archivado */
281
+ /** Si está fijado / Whether it's pinned */
282
+ get pinned(): boolean;
283
+ /** Si está archivado / Whether it's archived */
254
284
  get archived(): boolean;
255
- /** Timestamp cuando expira el silencio o false */
256
- get muted(): number | false;
257
- /** Si está leído */
258
- get readed(): boolean;
259
- /** Si es solo lectura */
285
+ /** Timestamp cuando expira el silencio (0 = no silenciado) / Mute end timestamp (0 = not muted) */
286
+ get muted(): number;
287
+ /** Si está leído / Whether it's read */
288
+ get read(): boolean;
289
+ /** Si es solo lectura / Whether it's read-only */
260
290
  get readonly(): boolean;
261
291
  }[]>;
262
292
  /**
263
- * @description Fija o desfija un chat.
264
- * @param cid ID del chat.
265
- * @param value true para fijar, false para desfijar.
266
- * @returns true si se actualizó correctamente.
293
+ * @description Fija o desfija un chat por su ID.
294
+ * Pins or unpins a chat by its ID.
267
295
  */
268
296
  pin(cid: string, value: boolean): Promise<boolean>;
269
297
  /**
270
- * @description Archiva o desarchiva un chat.
271
- * @param cid ID del chat.
272
- * @param value true para archivar, false para desarchivar.
273
- * @returns true si se actualizó correctamente.
298
+ * @description Archiva o desarchiva un chat por su ID.
299
+ * Archives or unarchives a chat by its ID.
274
300
  */
275
301
  archive(cid: string, value: boolean): Promise<boolean>;
276
302
  /**
277
- * @description Silencia o quita silencio de un chat.
278
- * @param cid ID del chat.
279
- * @param duration Duración en milisegundos (0 o null para quitar silencio).
280
- * @returns true si se actualizó correctamente.
303
+ * @description Silencia o quita silencio de un chat por su ID.
304
+ * Mutes or unmutes a chat by its ID.
281
305
  */
282
306
  mute(cid: string, duration: number | null): Promise<boolean>;
283
307
  /**
284
- * @description Marca un chat como leído.
285
- * @param cid ID del chat.
286
- * @returns true si se marcó correctamente.
308
+ * @description Marca un chat como leido por su ID.
309
+ * Marks a chat as read by its ID.
287
310
  */
288
311
  seen(cid: string): Promise<boolean>;
289
312
  /**
290
- * @description Limpia todos los datos del chat del storage (cascade delete).
291
- * @param cid ID del chat.
292
- */
293
- cascade_delete(cid: string): Promise<void>;
294
- /**
295
- * @description Elimina un chat con cascade delete.
296
- * @param cid ID del chat.
297
- * @returns true si se eliminó correctamente.
313
+ * @description Elimina un chat por su ID.
314
+ * Removes a chat by its ID.
298
315
  */
299
316
  remove(cid: string): Promise<boolean>;
300
- /**
301
- * @description Agrega un mensaje al índice del chat.
302
- * @param cid ID del chat.
303
- * @param mid ID del mensaje.
304
- * @param timestamp Timestamp de creación.
305
- */
306
- add_message(cid: string, mid: string, timestamp: number): Promise<void>;
307
- /**
308
- * @description Elimina un mensaje del índice del chat.
309
- * @param cid ID del chat.
310
- * @param mid ID del mensaje.
311
- */
312
- remove_message(cid: string, mid: string): Promise<void>;
313
- /**
314
- * @description Lista IDs de mensajes del chat (paginado).
315
- * @param cid ID del chat.
316
- * @param offset Inicio de paginación.
317
- * @param limit Cantidad máxima.
318
- * @returns Array de IDs de mensajes.
319
- */
320
- list_messages(cid: string, offset?: number, limit?: number): Promise<string[]>;
321
- /**
322
- * @description Cuenta mensajes del chat.
323
- * @param cid ID del chat.
324
- * @returns Cantidad de mensajes.
325
- */
326
- count_messages(cid: string): Promise<number>;
327
- /**
328
- * @description Obtiene los miembros de un chat.
329
- * @param cid ID del chat.
330
- * @param offset Inicio de paginación.
331
- * @param limit Cantidad máxima de resultados.
332
- * @returns Array de contactos.
333
- */
334
- members(cid: string, offset?: number, limit?: number): Promise<InstanceType<typeof wa.Contact>[]>;
335
317
  };