/// /// import { proto } from '../../WAProto'; import { AnyMessageContent, Chat, LegacySocketConfig, MiscMessageGenerationOptions, WAMessage, WAMessageCursor, WAUrlInfo } from '../Types'; import { MediaDownloadOptions } from '../Utils'; import { BinaryNode } from '../WABinary'; declare const makeMessagesSocket: (config: LegacySocketConfig) => { relayMessage: (message: WAMessage, { waitForAck }?: { waitForAck: boolean; }) => Promise; waUploadToServer: import("../Types").WAMediaUploadFunction; generateUrlInfo: (text: string) => Promise; messageInfo: (jid: string, messageID: string) => Promise; downloadMediaMessage: (message: WAMessage, type?: 'buffer' | 'stream', options?: MediaDownloadOptions) => Promise; updateMediaMessage: (message: WAMessage) => Promise; fetchMessagesFromWA: (jid: string, count: number, cursor?: WAMessageCursor | undefined) => Promise; /** Load a single message specified by the ID */ loadMessageFromWA: (jid: string, id: string) => Promise; searchMessages: (txt: string, inJid: string | null, count: number, page: number) => Promise<{ last: boolean; messages: proto.WebMessageInfo[]; }>; sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions & { waitForAck?: boolean; }) => Promise; sendChatsQuery: (epoch: number) => Promise; profilePictureUrl: (jid: string, timeoutMs?: number | undefined) => Promise; chatRead: (fromMessage: proto.IMessageKey, count: number) => Promise; chatModify: (modification: import("../Types").ChatModification, jid: string, chatInfo: Pick, timestampNow?: number | undefined) => Promise; onWhatsApp: (str: string) => Promise<{ exists: boolean; jid: string; isBusiness: boolean; } | undefined>; sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string | undefined) => Promise; presenceSubscribe: (jid: string) => Promise; getStatus: (jid: string) => Promise<{ status: string; }>; setStatus: (status: string) => Promise<{ status: number; }>; updateBusinessProfile: (profile: import("../Types").WABusinessProfile) => Promise; updateProfileName: (name: string) => Promise<{ status: number; pushname: string; }>; updateProfilePicture(jid: string, imgBuffer: Buffer): Promise; blockUser: (jid: string, type?: "add" | "remove") => Promise; getBusinessProfile: (jid: string) => Promise; state: import("../Types").ConnectionState; authInfo: import("../Types").LegacyAuthenticationCreds; ev: import("../Types").LegacyBaileysEventEmitter; canLogin: () => boolean; logout: () => Promise; waitForConnectionUpdate: (check: (u: Partial) => boolean | undefined, timeoutMs?: number | undefined) => Promise; type: "legacy"; ws: import("ws"); sendAdminTest: () => Promise; updateKeys: (info: { encKey: Buffer; macKey: Buffer; }) => { encKey: Buffer; macKey: Buffer; }; waitForSocketOpen: () => Promise; sendNode: ({ json, binaryTag, tag, longTag }: import("../Types").SocketSendMessageOptions) => Promise; generateMessageTag: (longTag?: boolean) => string; waitForMessage: (tag: string, requiresPhoneConnection: boolean, timeoutMs?: number | undefined) => { promise: Promise; cancelToken: () => void; }; query: ({ json, timeoutMs, expect200, tag, longTag, binaryTag, requiresPhoneConnection }: import("../Types").SocketQueryOptions) => Promise; setQuery: (nodes: BinaryNode[], binaryTag?: import("../Types").WATag, tag?: string | undefined) => Promise<{ status: number; }>; currentEpoch: () => number; end: (error: Error | undefined) => void; }; export default makeMessagesSocket;