/// /// import NodeCache from "node-cache"; import { proto } from "../../WAProto"; import { AnyMessageContent, GroupMetadata, MediaConnInfo, MessageReceiptType, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig, WAMessageKey } from "../Types"; import { BinaryNode, JidWithDevice } from "../WABinary"; export declare const makeMessagesSocket: (config: SocketConfig) => { sentMessagesCache: NodeCache | undefined; getPrivacyTokens: (jids: string[]) => Promise; getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise; assertSessions: (jids: string[], force: boolean) => Promise; relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, useUserDevicesCache, statusJidList }: MessageRelayOptions) => Promise; sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise; sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise; readMessages: (keys: WAMessageKey[]) => Promise; refreshMediaConn: (forceGet?: boolean) => Promise; waUploadToServer: import("../Types").WAMediaUploadFunction; fetchPrivacySettings: (force?: boolean) => Promise<{ [_: string]: string; }>; sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise; updateMediaMessage: (message: proto.IWebMessageInfo) => Promise; sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise; groupMetadata: (jid: string) => Promise; groupCreate: (subject: string, participants: string[]) => Promise; groupLeave: (id: string) => Promise; groupUpdateSubject: (jid: string, subject: string) => Promise; groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{ status: string; jid: string; }[]>; groupUpdateDescription: (jid: string, description?: string | undefined) => Promise; groupInviteCode: (jid: string) => Promise; groupRevokeInvite: (jid: string) => Promise; groupAcceptInvite: (code: string) => Promise; groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise; groupGetInviteInfo: (code: string) => Promise; groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise; groupSettingUpdate: (jid: string, setting: "locked" | "announcement" | "not_announcement" | "unlocked") => Promise; groupFetchAllParticipating: () => Promise<{ [_: string]: GroupMetadata; }>; processingMutex: { mutex(code: () => T | Promise): Promise; }; upsertMessage: (msg: import("../Types").WAMessage, type: import("../Types").MessageUpsertType) => Promise; appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise; sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string | undefined) => Promise; presenceSubscribe: (toJid: string) => Promise; profilePictureUrl: (jid: string, type?: "image" | "preview", timeoutMs?: number | undefined) => Promise; onWhatsApp: (...jids: string[]) => Promise<{ exists: boolean; jid: string; lid: string | undefined; }[]>; fetchBlocklist: () => Promise; fetchStatus: (jid: string) => Promise<{ status: string | undefined; setAt: Date; } | undefined>; updateCallPrivacy: (value: import("../Types").WAPrivacyCallValue) => Promise; updateMessagesPrivacy: (value: import("../Types").WAPrivacyMessagesValue) => Promise; updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise; updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise; updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise; updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise; updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise; updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyGroupAddValue) => Promise; updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise; updateProfileStatus: (status: string) => Promise; updateProfileName: (name: string) => Promise; updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise; getBusinessProfile: (jid: string) => Promise; resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise; addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise; removeContact: (jid: string) => Promise; chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise; addChatLabel: (jid: string, labelId: string) => Promise; removeChatLabel: (jid: string, labelId: string) => Promise; addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise; removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise; addLabel: (labelId: string, name: string, color?: number, predefinedId?: number, deleted?: boolean) => Promise; type: "md"; ws: import("ws"); ev: import("../Types").BaileysEventEmitter & { process(handler: (events: Partial) => void | Promise): () => void; buffer(): boolean; createBufferedFunction(work: (...args: A) => Promise): (...args: A) => Promise; flush(): Promise; processInBuffer(task: Promise): any; }; authState: { creds: import("../Types").AuthenticationCreds; keys: import("../Types").SignalKeyStoreWithTransaction; }; user: import("../Types").Contact | undefined; generateMessageTag: () => string; query: (node: BinaryNode, timeoutMs?: number | undefined) => Promise; waitForMessage: (msgId: string, timeoutMs?: number | undefined) => Promise; waitForSocketOpen: () => Promise; sendRawMessage: (data: Buffer | Uint8Array) => Promise; sendNode: (frame: BinaryNode) => Promise; logout: (msg?: string | undefined) => Promise; end: (error: Error | undefined) => void; onUnexpectedError: (error: Error, msg: string) => void; uploadPreKeys: (count?: number) => Promise; requestPairingCode: (phoneNumber: string, customPairingCode?: string | undefined) => Promise; fetchAccountReachOutTimeLock: () => Promise<{ is_active?: boolean | undefined; time_enforcement_ends?: string | undefined; enforcement_type: import("../Types").ReachOutTimeLockEnforcementType; }>; fetchNewChatMessageCap: () => Promise; waitForConnectionUpdate: (check: (u: Partial) => boolean | undefined, timeoutMs?: number | undefined) => Promise; };