/// /// import { proto } from '../../WAProto'; import { AnyMessageContent, MediaConnInfo, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig } from '../Types'; import { BinaryNode } from '../WABinary'; export declare const makeMessagesSocket: (config: SocketConfig) => { assertSessions: (jids: string[], force: boolean) => Promise; relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, cachedGroupMetadata }: MessageRelayOptions) => Promise; sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: 'read' | 'read-self' | undefined) => Promise; sendReadReceipt: (jid: string, participant: string | undefined, messageIds: string[]) => Promise; refreshMediaConn: (forceGet?: boolean) => Promise; waUploadToServer: import("../Types").WAMediaUploadFunction; fetchPrivacySettings: (force?: boolean) => Promise<{ [_: string]: string; }>; 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; groupUpdateDescription: (jid: string, description?: string) => Promise; groupInviteCode: (jid: string) => Promise; groupRevokeInvite: (jid: string) => Promise; groupAcceptInvite: (code: string) => Promise; groupAcceptInviteV4: (jid: string, inviteMessage: proto.IGroupInviteMessage) => Promise; groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise; groupSettingUpdate: (jid: string, setting: "announcement" | "locked" | "not_announcement" | "unlocked") => Promise; groupFetchAllParticipating: () => Promise<{ [_: string]: import("../Types").GroupMetadata; }>; type: "md"; ws: import("ws"); ev: import("../Types").BaileysEventEmitter; authState: { creds: import("../Types").AuthenticationCreds; keys: import("../Types").SignalKeyStoreWithTransaction; }; user: import("../Types").Contact; assertingPreKeys: (range: number, execute: (keys: { [_: number]: any; }) => Promise) => Promise; generateMessageTag: () => string; query: (node: BinaryNode, timeoutMs?: number) => Promise; waitForMessage: (msgId: string, timeoutMs?: number) => Promise; waitForSocketOpen: () => Promise; sendRawMessage: (data: Uint8Array | Buffer) => Promise; sendNode: (node: BinaryNode) => Promise; logout: () => Promise; end: (error: Error) => void; onUnexpectedError: (error: Error, msg: string) => void; waitForConnectionUpdate: (check: (u: Partial) => boolean, timeoutMs?: number) => Promise; };