/// /// import { proto } from '../Proto'; import { SuperChatsEventMap, MessageRelayOptions, MessageReceiptType, SocketConfig } from '../Models'; import { BinaryNode } from '../Internal'; export declare const makeMessagesRecvSocket: (config: SocketConfig) => { processMessage: (msg: proto.IWebMessageInfo) => Promise>>; sendMessageAck: ({ tag, attrs }: BinaryNode) => Promise; sendRetryRequest: (node: BinaryNode) => Promise; appPatch: (patchCreate: import("../Models").WAPatchCreate) => Promise; sendPresenceUpdate: (type: import("../Models").WAPresence, toJid?: string) => Promise; presenceSubscribe: (toJid: string, tcToken?: Buffer) => Promise; profilePictureUrl: (jid: string, type?: "image" | "preview", timeoutMs?: number) => Promise; onWhatsApp: (...jids: string[]) => Promise<{ exists: boolean; jid: string; }[]>; updateAccountSyncTimestamp: (fromTimestamp: string | number) => Promise; fetchBlocklist: () => Promise; fetchStatus: (jid: string) => Promise<{ status: string; setAt: Date; }>; updateProfilePicture: (jid: string, content: import("../Models").WAMediaUpload) => Promise; updateProfileStatus: (status: string) => Promise; updateProfileName: (name: string) => Promise; updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise; getBusinessProfile: (jid: string) => Promise; resyncAppState: (collections: import("../Models").WAPatchName[]) => Promise; chatModify: (mod: import("../Models").ChatModification, jid: string) => Promise; resyncMainAppState: () => Promise; assertSessions: (jids: string[], force: boolean) => Promise; relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, useUserDevicesCache, cachedGroupMetadata }: MessageRelayOptions) => Promise; sendReceipt: (jid: string, participant: string, messageIds: string[], type: MessageReceiptType) => Promise; sendReadReceipt: (jid: string, participant: string, messageIds: string[]) => Promise; readMessages: (keys: proto.IMessageKey[]) => Promise; refreshMediaConn: (forceGet?: boolean) => Promise; waUploadToServer: import("../Models").WAMediaUploadFunction; fetchPrivacySettings: (force?: boolean) => Promise<{ [_: string]: string; }>; updateMediaMessage: (message: proto.IWebMessageInfo) => Promise; sendMessage: (jid: string, content: import("../Models").AnyMessageContent, options?: import("../Models").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("../Models").ParticipantAction) => Promise<{ status: string | number; jid: string; }[]>; groupUpdateDescription: (jid: string, description?: string) => Promise; groupInviteCode: (jid: string) => Promise; groupRevokeInvite: (jid: string) => Promise; groupAcceptInvite: (code: string) => Promise; groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise; groupSettingUpdate: (jid: string, setting: "announcement" | "locked" | "not_announcement" | "unlocked") => Promise; groupFetchAllParticipating: () => Promise<{ [_: string]: import("../Models").GroupMetadata; }>; waitForConnectionUpdate: (check: (u: Partial) => boolean, timeoutMs?: number) => Promise; addInfoObjects: (name: any, extend: any) => boolean; getUser: (name: any) => any; checkAddUser: (name: any) => boolean; checkUser: (name: any) => boolean; sessionsDir: (sessionId?: string) => string; checkSession: (name: any) => boolean; getSessionKey: (name: any) => string | false; searchObjects: (name: any) => any; getAll: () => any; checkClient: (name: any) => boolean; deleteToken: (name: any) => boolean; deleteSession: (name: any) => boolean; removeInfoObjects: (name: any, key: any) => boolean; type: "md"; ws: import("ws"); ev: import("../Models").SuperChatsEventEmitter; authState: { creds: import("../Models").AuthenticationCreds; keys: import("../Models").SignalKeyStoreWithTransaction; }; user: import("../Models").Contact; generateMessageTag: () => string; query: (node: BinaryNode, timeoutMs?: number) => Promise; waitForMessage: (msgId: string, timeoutMs?: number) => Promise; waitForSocketOpen: () => Promise; sendRawMessage: (data: Uint8Array | Buffer) => Promise; sendNode: (frame: BinaryNode) => Promise; uploadPreKeys: (count?: number) => Promise; logout: (msg?: string) => Promise; emitEventsFromMap: (map: Partial>) => void; close: () => Promise; end: (error: Error) => void; onUnexpectedError: (error: Error, msg: string) => void; logs_e: (message: string) => void; logs_i: (message: string) => void; createGroup: (name: string, participants: any) => Promise<{}>; addParticipantsGroup: (id: string, participants: any) => Promise<{}>; removeParticipantsGroup: (id: string, participants: any) => Promise<{}>; addGroupAdmins: (id: string, participants: any) => Promise<{}>; removeGroupAdmins: (id: string, participants: any) => Promise<{}>; groupTitle: (id: string, title: string) => Promise<{}>; groupDescription: (id: string, description: string) => Promise<{}>; leaveGroup: (id: string) => Promise<{}>; getGroupLink: (id: string) => Promise<{}>; joinGroup: (code: string) => Promise<{}>; setGroupSettings: (id: string, option: "message" | "settings", boolean: boolean) => Promise<{}>; revokeGroupLink: (id: string) => Promise<{}>; };