@lazyneoaz/metachat 4.0.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.
@@ -0,0 +1,555 @@
1
+ import { ReadStream } from 'fs';
2
+ import { EventEmitter } from 'events';
3
+
4
+ interface LoginOptions$1 {
5
+ online?: boolean;
6
+ selfListen?: boolean;
7
+ selfListenEvent?: string;
8
+ listenEvents?: boolean;
9
+ updatePresence?: boolean;
10
+ forceLogin?: boolean;
11
+ autoMarkDelivery?: boolean;
12
+ autoMarkRead?: boolean;
13
+ listenTyping?: boolean;
14
+ proxy?: string;
15
+ autoReconnect?: boolean;
16
+ userAgent?: string;
17
+ emitReady?: boolean;
18
+ randomUserAgent?: boolean;
19
+ bypassRegion?: string;
20
+ advancedProtection?: boolean;
21
+ autoRotateSession?: boolean;
22
+ logging?: boolean;
23
+ pageID?: string;
24
+ [key: string]: any;
25
+ }
26
+ interface LoginCredentials$1 {
27
+ appState?: any;
28
+ email?: string;
29
+ password?: string;
30
+ }
31
+ interface ApiContext$1 {
32
+ userID: string;
33
+ jar: any;
34
+ clientID?: string;
35
+ appID?: string;
36
+ mqttAppID?: string;
37
+ userAppID?: string;
38
+ globalOptions: LoginOptions$1;
39
+ loggedIn: boolean;
40
+ access_token?: string;
41
+ clientMutationId: number;
42
+ mqttClient?: any;
43
+ lastSeqId?: string | null;
44
+ syncToken?: string;
45
+ mqttEndpoint?: string;
46
+ wsReqNumber: number;
47
+ wsTaskNumber: number;
48
+ reqCallbacks: Record<string, any>;
49
+ callback_Task: Record<string, any>;
50
+ region?: string;
51
+ firstListen: boolean;
52
+ fb_dtsg?: string;
53
+ jazoest?: string;
54
+ lsd?: string;
55
+ ttstamp?: string;
56
+ threadTypeCache?: Record<string, boolean>;
57
+ lastMessageTime?: number;
58
+ messageCount?: number;
59
+ mqttConnected?: boolean;
60
+ presenceInterval?: any;
61
+ idleCheckInterval?: any;
62
+ reconnectMqtt?: () => Promise<void>;
63
+ [key: string]: any;
64
+ }
65
+ interface Api {
66
+ setOptions(options: LoginOptions$1): void;
67
+ getAppState(): any[];
68
+ getCurrentUserID(): string;
69
+ [key: string]: any;
70
+ }
71
+ type DefaultFuncs$1 = {
72
+ get(url: string, jar: any, qs?: any, ctxx?: any, customHeader?: any): Promise<any>;
73
+ post(url: string, jar: any, form?: any, ctxx?: any, customHeader?: any): Promise<any>;
74
+ postFormData(url: string, jar: any, form?: any, qs?: any, ctxx?: any, customHeader?: any): Promise<any>;
75
+ };
76
+
77
+ declare function login$1(credentials: LoginCredentials$1, options?: LoginOptions$1 | ((err: any, api?: Api) => void), callback?: (err: any, api?: Api) => void): Promise<Api>;
78
+
79
+ type UserID = string;
80
+ type ThreadID = string;
81
+ type MessageID = string;
82
+ type Callback<T = any> = (err: any, result?: T) => void;
83
+ interface Coordinates {
84
+ latitude: number;
85
+ longitude: number;
86
+ }
87
+ interface Mention {
88
+ tag: string;
89
+ id: UserID;
90
+ fromIndex?: number;
91
+ }
92
+ interface Reaction {
93
+ reaction: string;
94
+ userID: UserID;
95
+ }
96
+ interface StickerPackInfo {
97
+ id: string;
98
+ name: string;
99
+ thumbnail?: string;
100
+ }
101
+ interface StickerInfo {
102
+ type: "sticker";
103
+ ID: string;
104
+ url?: string;
105
+ animatedUrl?: string;
106
+ packID?: string;
107
+ label: string;
108
+ stickerID: string;
109
+ }
110
+ interface AddedStickerPackInfo {
111
+ id: string;
112
+ name: string;
113
+ in_sticker_tray: boolean;
114
+ artist?: string;
115
+ preview_image?: {
116
+ uri: string;
117
+ };
118
+ thumbnail_image?: {
119
+ uri: string;
120
+ };
121
+ }
122
+ interface CommentMessage {
123
+ body: string;
124
+ attachment?: ReadStream[];
125
+ mentions?: Mention[];
126
+ url?: string;
127
+ sticker?: string;
128
+ }
129
+ interface CommentResult {
130
+ id: string;
131
+ url: string;
132
+ count: number;
133
+ }
134
+ interface ShareResult {
135
+ postID: string;
136
+ url: string;
137
+ }
138
+ interface Attachment {
139
+ type: "photo" | "animated_image" | "video" | "audio" | "file" | "sticker" | "share" | "location" | "unknown";
140
+ ID: string;
141
+ filename: string;
142
+ url?: string;
143
+ name?: string;
144
+ }
145
+ interface PhotoAttachment extends Attachment {
146
+ type: "photo";
147
+ thumbnailUrl: string;
148
+ previewUrl: string;
149
+ previewWidth: number;
150
+ previewHeight: number;
151
+ largePreviewUrl: string;
152
+ largePreviewWidth: number;
153
+ largePreviewHeight: number;
154
+ width: number;
155
+ height: number;
156
+ }
157
+ interface VideoAttachment extends Attachment {
158
+ type: "video";
159
+ duration: number;
160
+ width: number;
161
+ height: number;
162
+ previewUrl: string;
163
+ previewWidth: number;
164
+ previewHeight: number;
165
+ videoType: "file_attachment" | "native_video" | "unknown";
166
+ }
167
+ interface AudioAttachment extends Attachment {
168
+ type: "audio";
169
+ duration: number;
170
+ audioType: string;
171
+ isVoiceMail: boolean;
172
+ }
173
+ interface FileAttachment extends Attachment {
174
+ type: "file";
175
+ isMalicious: boolean;
176
+ contentType: string;
177
+ }
178
+ interface StickerAttachment extends Attachment {
179
+ type: "sticker";
180
+ packID: string;
181
+ spriteUrl?: string;
182
+ spriteUrl2x?: string;
183
+ width: number;
184
+ height: number;
185
+ caption: string;
186
+ description: string;
187
+ frameCount: number;
188
+ frameRate: number;
189
+ framesPerRow: number;
190
+ framesPerCol: number;
191
+ }
192
+ interface ShareAttachment extends Attachment {
193
+ type: "share";
194
+ title: string;
195
+ description?: string;
196
+ source?: string;
197
+ image?: string;
198
+ width?: number;
199
+ height?: number;
200
+ playable?: boolean;
201
+ subattachments?: any[];
202
+ properties: Record<string, any>;
203
+ }
204
+ type AnyAttachment = PhotoAttachment | VideoAttachment | AudioAttachment | FileAttachment | StickerAttachment | ShareAttachment;
205
+ interface MessageReply {
206
+ messageID: MessageID;
207
+ senderID: UserID;
208
+ body: string;
209
+ attachments: AnyAttachment[];
210
+ timestamp: string;
211
+ isReply: true;
212
+ }
213
+ interface Message {
214
+ type: "message";
215
+ senderID: UserID;
216
+ body: string;
217
+ threadID: ThreadID;
218
+ messageID: MessageID;
219
+ attachments: AnyAttachment[];
220
+ mentions: Record<string, string>;
221
+ timestamp: string;
222
+ isGroup: boolean;
223
+ participantIDs?: UserID[];
224
+ messageReply?: MessageReply;
225
+ isUnread?: boolean;
226
+ reactions?: Reaction[];
227
+ }
228
+ interface Event {
229
+ type: "event";
230
+ threadID: ThreadID;
231
+ logMessageType: string;
232
+ logMessageData: any;
233
+ logMessageBody: string;
234
+ timestamp: string;
235
+ author: UserID;
236
+ }
237
+ interface TypingIndicator {
238
+ type: "typ";
239
+ isTyping: boolean;
240
+ from: UserID;
241
+ threadID: ThreadID;
242
+ fromMobile: boolean;
243
+ }
244
+ type ListenEvent = Message | Event | TypingIndicator;
245
+ interface UserInfo {
246
+ id: UserID;
247
+ name: string;
248
+ firstName: string;
249
+ lastName?: string;
250
+ vanity: string;
251
+ profileUrl: string;
252
+ profilePicUrl: string;
253
+ gender: string;
254
+ type: "user" | "page";
255
+ isFriend: boolean;
256
+ isBirthday: boolean;
257
+ bio?: string;
258
+ live_city?: string;
259
+ followers?: string;
260
+ following?: string;
261
+ coverPhoto?: string;
262
+ }
263
+ interface ThreadInfo {
264
+ threadID: ThreadID;
265
+ threadName?: string;
266
+ participantIDs: UserID[];
267
+ userInfo: UserInfo[];
268
+ unreadCount: number;
269
+ messageCount: number;
270
+ imageSrc?: string;
271
+ timestamp: string;
272
+ muteUntil: number;
273
+ isGroup: boolean;
274
+ isArchived: boolean;
275
+ isSubscribed: boolean;
276
+ folder: string;
277
+ nicknames: Record<UserID, string>;
278
+ adminIDs: UserID[];
279
+ emoji?: string;
280
+ color?: string;
281
+ canReply: boolean;
282
+ inviteLink: {
283
+ enable: boolean;
284
+ link: string | null;
285
+ };
286
+ }
287
+ interface MessageObject {
288
+ body?: string;
289
+ attachment?: ReadStream[];
290
+ sticker?: string;
291
+ emoji?: string;
292
+ emojiSize?: "small" | "medium" | "large";
293
+ mentions?: Mention[];
294
+ edit?: [string, number][];
295
+ }
296
+ interface API {
297
+ setOptions(options: LoginOptions): void;
298
+ getAppState(): any[];
299
+ getCurrentUserID(): UserID;
300
+ listen(callback: (err: any, event: ListenEvent) => void): EventEmitter;
301
+ sendMessageMqtt(message: string | MessageObject, threadID: ThreadID, replyToMessage?: MessageID, callback?: Callback<Message>): void;
302
+ editMessage(text: string, messageID: MessageID, callback?: Callback): Promise<any>;
303
+ shareContact(text: string, senderID: UserID, threadID: ThreadID, callback?: Callback): Promise<any>;
304
+ shareContact(senderID: UserID, threadID: ThreadID, callback?: Callback): Promise<any>;
305
+ resolvePhotoUrl(photoID: string, callback?: Callback<string>): Promise<string>;
306
+ pin(action: "pin" | "unpin", threadID: ThreadID, messageID: MessageID): Promise<any>;
307
+ pin(action: "list", threadID: ThreadID): Promise<Message[]>;
308
+ markAsRead(threadID: ThreadID, read?: boolean, callback?: Callback): Promise<any>;
309
+ markAsReadAll(callback?: Callback): Promise<void>;
310
+ markAsSeen(timestamp?: number, callback?: Callback): Promise<void>;
311
+ markAsDelivered(threadID: ThreadID, messageID: MessageID, callback?: Callback): Promise<void>;
312
+ sendTypingIndicator(sendTyping: boolean, threadID: ThreadID, callback?: Callback): Promise<void>;
313
+ getThreadInfo(threadID: ThreadID, callback?: Callback<ThreadInfo>): Promise<ThreadInfo>;
314
+ getThreadInfo(threadID: ThreadID[], callback?: Callback<Record<ThreadID, ThreadInfo>>): Promise<Record<ThreadID, ThreadInfo>>;
315
+ getThreadList(limit: number, timestamp: number | null, tags: string[], callback?: Callback<ThreadInfo[]>): Promise<ThreadInfo[]>;
316
+ getThreadHistory(threadID: ThreadID, amount: number, timestamp: number | null, callback?: Callback<Message[]>): Promise<Message[]>;
317
+ getUserInfo(id: UserID | UserID[], usePayload?: boolean, callback?: Callback<Record<UserID, UserInfo>>): Promise<Record<UserID, UserInfo>>;
318
+ getUserInfoV2(id: UserID | UserID[], callback?: Callback<Record<UserID, UserInfo>>): Promise<Record<UserID, UserInfo>>;
319
+ getFriendsList(callback?: Callback<any[]>): Promise<any[]>;
320
+ getThreadPictures(threadID: ThreadID, offset?: number, limit?: number, callback?: Callback<string[]>): Promise<string[]>;
321
+ getThreadColors(callback?: Callback<Record<string, string>>): Promise<Record<string, string>>;
322
+ changeArchivedStatus(threadOrThreads: ThreadID | ThreadID[], archive: boolean, callback?: Callback): Promise<void>;
323
+ changeBlockedStatus(userID: UserID, block: boolean, callback?: Callback): Promise<void>;
324
+ muteThread(threadID: ThreadID, muteSeconds: number, callback?: Callback): Promise<void>;
325
+ handleMessageRequest(threadID: ThreadID | ThreadID[], accept: boolean, callback?: Callback): Promise<void>;
326
+ changeAdminStatus(threadID: ThreadID, adminIDs: UserID | UserID[], adminStatus: boolean, callback?: Callback): Promise<void>;
327
+ changeThreadColor(color: string, threadID: ThreadID, callback?: Callback): Promise<any>;
328
+ addUserToGroup(userID: UserID | UserID[], threadID: ThreadID, callback?: Callback): Promise<any>;
329
+ removeUserFromGroup(userID: UserID | UserID[], threadID: ThreadID, callback?: Callback): Promise<any>;
330
+ getEmojiUrl(character: string, size?: number, pixelRatio?: string): string;
331
+ unsendMessage(messageID: MessageID, callback?: Callback<any>): Promise<any>;
332
+ setMessageReaction(reaction: string, messageID: MessageID, callback?: Callback<any>, forceCustomReaction?: boolean): Promise<any>;
333
+ sendMessage(message: string | MessageObject, threadID: ThreadID, callback?: Callback<Message>, replyToMessage?: MessageID, isGroup?: boolean): Promise<Message> | void;
334
+ uploadAttachment(attachment: any, callback?: Callback<any>): Promise<any>;
335
+ forwardAttachment(attachmentID: string, threadID: ThreadID, callback?: Callback<any>): Promise<any>;
336
+ deleteThread(threadID: ThreadID, callback?: Callback<any>): Promise<any>;
337
+ changeGroupImage(image: any, threadID: ThreadID, callback?: Callback<any>): Promise<any>;
338
+ changeAvatar(image: any, caption?: string, expirationAfter?: number, callback?: Callback<any>): Promise<any>;
339
+ getUserID(callback?: Callback<UserID>): UserID;
340
+ getUID(link: string, callback?: Callback<UserID>): Promise<UserID>;
341
+ getHealthStatus(): {
342
+ userID: UserID | null;
343
+ loggedIn: boolean;
344
+ mqtt: {
345
+ connected: boolean;
346
+ [key: string]: any;
347
+ };
348
+ antiSuspension: {
349
+ enabled: boolean;
350
+ circuitBreakerOpen: boolean;
351
+ };
352
+ uptimeMs: number | null;
353
+ timestamp: number;
354
+ };
355
+ getTheme(threadID?: ThreadID, callback?: Callback<any[]>): Promise<any[]>;
356
+ getThemeInfo(themeID: string, callback?: Callback<any>): Promise<any>;
357
+ fetchThemeData(themeID: string, callback?: Callback<any>): Promise<any>;
358
+ createAITheme(prompt: string, callback?: Callback<any[]>): Promise<any[]> | void;
359
+ logout(callback?: (err: any) => void): Promise<void>;
360
+ addExternalModule(moduleObj: Record<string, Function>): void;
361
+ getAccess(authCode?: string, callback?: Callback<string>): Promise<string>;
362
+ httpGet(url: string, form?: any, customHeader?: any, callback?: Callback<string>, notAPI?: boolean): Promise<string>;
363
+ httpPost(url: string, form?: any, customHeader?: any, callback?: Callback<string>, notAPI?: boolean): Promise<string>;
364
+ httpPostFormData(url: string, form?: any, customHeader?: any, callback?: Callback<string>, notAPI?: boolean): Promise<string>;
365
+ stickers: {
366
+ search(query: string): Promise<StickerInfo[]>;
367
+ listPacks(): Promise<StickerPackInfo[]>;
368
+ getStorePacks(): Promise<StickerPackInfo[]>;
369
+ listAllPacks(): Promise<StickerPackInfo[]>;
370
+ addPack(packID: string): Promise<AddedStickerPackInfo>;
371
+ getStickersInPack(packID: string): Promise<StickerInfo[]>;
372
+ getAiStickers(options?: {
373
+ limit?: number;
374
+ }): Promise<StickerInfo[]>;
375
+ };
376
+ comment(msg: string | CommentMessage, postID: string, replyCommentID?: string, callback?: Callback<CommentResult>): Promise<CommentResult>;
377
+ share(text: string, postID: string, callback?: Callback<ShareResult>): Promise<ShareResult>;
378
+ share(postID: string, callback?: Callback<ShareResult>): Promise<ShareResult>;
379
+ follow(senderID: UserID, follow: boolean, callback?: Callback): void;
380
+ unsent(messageID: MessageID, threadID: ThreadID, callback?: Callback<UnsendMessageEvent>): Promise<UnsendMessageEvent>;
381
+ emoji(emoji: string, threadID?: ThreadID, callback?: Callback<EmojiEvent>): Promise<EmojiEvent>;
382
+ gcname(newName: string, threadID?: ThreadID, callback?: Callback<GroupNameEvent>): Promise<GroupNameEvent>;
383
+ nickname(nickname: string, threadID: ThreadID, participantID: UserID, callback?: Callback<NicknameEvent>): Promise<NicknameEvent>;
384
+ theme(newName: string, threadID?: ThreadID, callback?: Callback<GroupNameEvent>): Promise<GroupNameEvent>;
385
+ setThreadTheme(threadID: ThreadID, themeFBID: string, callback?: Callback<ThreadThemeEvent>): Promise<ThreadThemeEvent>;
386
+ makeAiTheme(prompt: string, callback?: Callback<AiTheme[]>): Promise<AiTheme[]>;
387
+ searchMusic(query?: string, options?: SearchMusicOptions | Callback<SearchMusicResult>): Promise<SearchMusicResult>;
388
+ searchMusic(query: string, options: SearchMusicOptions, callback: Callback<SearchMusicResult>): Promise<SearchMusicResult>;
389
+ [key: string]: any;
390
+ }
391
+ interface ThreadThemeEvent {
392
+ type: "thread_theme_update";
393
+ threadID: ThreadID;
394
+ themeID: string;
395
+ senderID: UserID;
396
+ BotID: UserID;
397
+ timestamp: number;
398
+ }
399
+ interface AiTheme {
400
+ id?: string;
401
+ theme_id?: string;
402
+ name?: string;
403
+ accessibility_label?: string;
404
+ [key: string]: any;
405
+ }
406
+ interface MusicTag {
407
+ type?: string;
408
+ name?: string;
409
+ [key: string]: unknown;
410
+ }
411
+ interface MusicTrack {
412
+ id: string | null;
413
+ title: string;
414
+ artist: string;
415
+ album: string;
416
+ durationMs: number;
417
+ coverArtwork: string | null;
418
+ audioUrl: string;
419
+ tags: MusicTag[];
420
+ }
421
+ interface SearchMusicOptions {
422
+ count?: number;
423
+ cursor?: string;
424
+ product?: string;
425
+ }
426
+ type SearchMusicResult = MusicTrack[] & {
427
+ tracks: MusicTrack[];
428
+ endCursor: string | null;
429
+ hasNextPage: boolean;
430
+ query: string;
431
+ };
432
+ interface UnsendMessageEvent {
433
+ type: "message_unsend";
434
+ threadID: ThreadID;
435
+ messageID: MessageID;
436
+ senderID: UserID;
437
+ deletionTimestamp: string | number;
438
+ timestamp: string | number;
439
+ }
440
+ interface EmojiEvent {
441
+ type: "thread_emoji_update";
442
+ threadID: ThreadID;
443
+ newEmoji: string;
444
+ senderID: UserID;
445
+ BotID: UserID;
446
+ timestamp: number;
447
+ }
448
+ interface GroupNameEvent {
449
+ type: "thread_name_update" | "thread_theme_update";
450
+ threadID: ThreadID;
451
+ newName?: string;
452
+ themeID?: string;
453
+ themeName?: string;
454
+ senderID: UserID;
455
+ BotID: UserID;
456
+ timestamp: number;
457
+ }
458
+ interface NicknameEvent {
459
+ type: "thread_nickname_update";
460
+ threadID: ThreadID;
461
+ participantID: UserID;
462
+ newNickname: string;
463
+ senderID: UserID;
464
+ BotID: UserID;
465
+ timestamp: number;
466
+ }
467
+ interface LoginCredentials {
468
+ appState?: any;
469
+ email?: string;
470
+ password?: string;
471
+ }
472
+ interface LoginOptions {
473
+ online?: boolean;
474
+ selfListen?: boolean;
475
+ selfListenEvent?: string;
476
+ listenEvents?: boolean;
477
+ updatePresence?: boolean;
478
+ forceLogin?: boolean;
479
+ autoMarkDelivery?: boolean;
480
+ autoMarkRead?: boolean;
481
+ listenTyping?: boolean;
482
+ proxy?: string;
483
+ autoReconnect?: boolean;
484
+ userAgent?: string;
485
+ emitReady?: boolean;
486
+ randomUserAgent?: boolean;
487
+ bypassRegion?: string;
488
+ advancedProtection?: boolean;
489
+ autoRotateSession?: boolean;
490
+ logging?: boolean;
491
+ pageID?: string;
492
+ [key: string]: any;
493
+ }
494
+ declare function login(credentials: LoginCredentials, options?: LoginOptions): Promise<API>;
495
+ declare function login(credentials: LoginCredentials, callback: Callback<API>): Promise<API>;
496
+ declare function login(credentials: LoginCredentials, options: LoginOptions, callback: Callback<API>): Promise<API>;
497
+
498
+ type publicTypes_API = API;
499
+ type publicTypes_AddedStickerPackInfo = AddedStickerPackInfo;
500
+ type publicTypes_AiTheme = AiTheme;
501
+ type publicTypes_AnyAttachment = AnyAttachment;
502
+ type publicTypes_Attachment = Attachment;
503
+ type publicTypes_AudioAttachment = AudioAttachment;
504
+ type publicTypes_Callback<T = any> = Callback<T>;
505
+ type publicTypes_CommentMessage = CommentMessage;
506
+ type publicTypes_CommentResult = CommentResult;
507
+ type publicTypes_Coordinates = Coordinates;
508
+ type publicTypes_EmojiEvent = EmojiEvent;
509
+ type publicTypes_Event = Event;
510
+ type publicTypes_FileAttachment = FileAttachment;
511
+ type publicTypes_GroupNameEvent = GroupNameEvent;
512
+ type publicTypes_ListenEvent = ListenEvent;
513
+ type publicTypes_LoginCredentials = LoginCredentials;
514
+ type publicTypes_LoginOptions = LoginOptions;
515
+ type publicTypes_Mention = Mention;
516
+ type publicTypes_Message = Message;
517
+ type publicTypes_MessageID = MessageID;
518
+ type publicTypes_MessageObject = MessageObject;
519
+ type publicTypes_MessageReply = MessageReply;
520
+ type publicTypes_MusicTag = MusicTag;
521
+ type publicTypes_MusicTrack = MusicTrack;
522
+ type publicTypes_NicknameEvent = NicknameEvent;
523
+ type publicTypes_PhotoAttachment = PhotoAttachment;
524
+ type publicTypes_Reaction = Reaction;
525
+ type publicTypes_SearchMusicOptions = SearchMusicOptions;
526
+ type publicTypes_SearchMusicResult = SearchMusicResult;
527
+ type publicTypes_ShareAttachment = ShareAttachment;
528
+ type publicTypes_ShareResult = ShareResult;
529
+ type publicTypes_StickerAttachment = StickerAttachment;
530
+ type publicTypes_StickerInfo = StickerInfo;
531
+ type publicTypes_StickerPackInfo = StickerPackInfo;
532
+ type publicTypes_ThreadID = ThreadID;
533
+ type publicTypes_ThreadInfo = ThreadInfo;
534
+ type publicTypes_ThreadThemeEvent = ThreadThemeEvent;
535
+ type publicTypes_TypingIndicator = TypingIndicator;
536
+ type publicTypes_UnsendMessageEvent = UnsendMessageEvent;
537
+ type publicTypes_UserID = UserID;
538
+ type publicTypes_UserInfo = UserInfo;
539
+ type publicTypes_VideoAttachment = VideoAttachment;
540
+ declare const publicTypes_login: typeof login;
541
+ declare namespace publicTypes {
542
+ export { type publicTypes_API as API, type publicTypes_AddedStickerPackInfo as AddedStickerPackInfo, type publicTypes_AiTheme as AiTheme, type publicTypes_AnyAttachment as AnyAttachment, type publicTypes_Attachment as Attachment, type publicTypes_AudioAttachment as AudioAttachment, type publicTypes_Callback as Callback, type publicTypes_CommentMessage as CommentMessage, type publicTypes_CommentResult as CommentResult, type publicTypes_Coordinates as Coordinates, type publicTypes_EmojiEvent as EmojiEvent, type publicTypes_Event as Event, type publicTypes_FileAttachment as FileAttachment, type publicTypes_GroupNameEvent as GroupNameEvent, type publicTypes_ListenEvent as ListenEvent, type publicTypes_LoginCredentials as LoginCredentials, type publicTypes_LoginOptions as LoginOptions, type publicTypes_Mention as Mention, type publicTypes_Message as Message, type publicTypes_MessageID as MessageID, type publicTypes_MessageObject as MessageObject, type publicTypes_MessageReply as MessageReply, type publicTypes_MusicTag as MusicTag, type publicTypes_MusicTrack as MusicTrack, type publicTypes_NicknameEvent as NicknameEvent, type publicTypes_PhotoAttachment as PhotoAttachment, type publicTypes_Reaction as Reaction, type publicTypes_SearchMusicOptions as SearchMusicOptions, type publicTypes_SearchMusicResult as SearchMusicResult, type publicTypes_ShareAttachment as ShareAttachment, type publicTypes_ShareResult as ShareResult, type publicTypes_StickerAttachment as StickerAttachment, type publicTypes_StickerInfo as StickerInfo, type publicTypes_StickerPackInfo as StickerPackInfo, type publicTypes_ThreadID as ThreadID, type publicTypes_ThreadInfo as ThreadInfo, type publicTypes_ThreadThemeEvent as ThreadThemeEvent, type publicTypes_TypingIndicator as TypingIndicator, type publicTypes_UnsendMessageEvent as UnsendMessageEvent, type publicTypes_UserID as UserID, type publicTypes_UserInfo as UserInfo, type publicTypes_VideoAttachment as VideoAttachment, publicTypes_login as login };
543
+ }
544
+
545
+ type ApiContext = ApiContext$1;
546
+ type ApiInternal = Api;
547
+ type DefaultFuncs = DefaultFuncs$1;
548
+
549
+ declare const _default: typeof login$1 & {
550
+ login: typeof login$1;
551
+ publicTypes: typeof publicTypes;
552
+ default: typeof login$1;
553
+ };
554
+
555
+ export { type API, type AddedStickerPackInfo, type AiTheme, type AnyAttachment, type ApiContext, type ApiInternal, type Attachment, type AudioAttachment, type Callback, type CommentMessage, type CommentResult, type Coordinates, type DefaultFuncs, type EmojiEvent, type Event, type FileAttachment, type GroupNameEvent, type ListenEvent, type LoginCredentials, type LoginOptions, type Mention, type Message, type MessageID, type MessageObject, type MessageReply, type MusicTag, type MusicTrack, type NicknameEvent, type PhotoAttachment, type Reaction, type SearchMusicOptions, type SearchMusicResult, type ShareAttachment, type ShareResult, type StickerAttachment, type StickerInfo, type StickerPackInfo, type ThreadID, type ThreadInfo, type ThreadThemeEvent, type TypingIndicator, type UnsendMessageEvent, type UserID, type UserInfo, type VideoAttachment, _default as default, login$1 as login, publicTypes };