/// /// import { SocketConfig } from "../Models"; export declare const makeFunctionsSocket: (config: SocketConfig) => { getAllContacts: () => Promise<{ session: string; device: string; status: number; type: string; qt: number; contacts: any[]; }>; getBatteryLevel: () => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; getBlockList: () => Promise<{}>; getGroups: () => Promise<{}>; getChats: () => Promise<{ session: string; device: string; status: number; type: string; qt: number; chats: any[]; }>; setPresence: (id: string, type: string) => Promise<{}>; setPicture: (id: string, file: string) => Promise<{}>; blockContact: (id: string) => Promise<{}>; unblockContact: (id: string) => Promise<{}>; archiveChat: (id: string, boolean: boolean) => Promise<{}>; getPicture: (id: string) => Promise<{}>; deleteChat: (id: string) => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; deleteMessageAll: (id: string, msgId: string) => Promise<{}>; deleteMessageMe: (id: string, messageId: string) => Promise<{}>; markReadAll: (id: string) => Promise<{}>; markRead: (id: string, msgId: string, participant?: string) => Promise<{}>; muteChat: (id: string, timer: timerMute) => Promise<{}>; unmuteChat: (id: string) => Promise<{}>; pinChat: (id: string, boolean: boolean) => Promise<{}>; getNumberProfile: (id: string) => Promise<{}>; getProfileStatus: (id: string) => Promise<{}>; getHostDevice: () => Promise<{}>; infoGroup: (id: string) => Promise<{}>; decryptFile: (message: any) => Promise<{}>; decryptByIdFile: (id: string, msgId: string) => Promise<{}>; decryptRemote: (id: string, msgId: string) => Promise<{}>; decryptFileSave: (message: any, filename: any) => Promise<{}>; decryptByIdFileSave: (id: string, msgId: string, filename: string) => Promise<{}>; getConnectionState: () => Promise<{ session: string; device: string; status: number; type: string; state: string; }>; getName: (id: string) => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; getPresence: (id: string) => Promise<{}>; getChatMessages: (id: string, number: number) => Promise<{}>; getChatAllMessages: (id: string) => Promise<{}>; getAllUnreadMessages: () => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; getMessageById: (id: string, idMsg: string) => Promise<{}>; sendText: (id: string, text: string, replyIdMessage?: string) => Promise<{}>; sendImage: (id: string, file: string, text?: string, replyIdMessage?: string) => Promise<{}>; sendLink: (id: any, link: any, description: any, replyIdMessage: any) => Promise<{}>; sendVideo: (id: string, file: string, text?: string, replyIdMessage?: string) => Promise<{}>; sendDocument: (id: string, file: string, filename?: string, replyIdMessage?: string) => Promise<{}>; sendAudio: (id: string, file: string, replyIdMessage?: string) => Promise<{}>; sendVoice: (id: string, file: string, replyIdMessage?: string) => Promise<{}>; sendLocation: (id: string, latitude: number, logitude: number, title?: string, address?: string, replyIdMessage?: string) => Promise<{}>; sendContact: (id: string, name: string, contact: string, replyIdMessage?: string) => Promise<{}>; sendSticker: (id: string, file: string, replyIdMessage?: string) => Promise<{}>; sendList: (id: string, btnName: string, sections: [], title: string, description?: string, footer?: string, replyIdMessage?: string) => Promise<{}>; sendButtonsMD: (id: string, title: string, buttons: any, description?: string, replyIdMessage?: string) => Promise<{}>; sendTextStatus: (text: string) => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; sendImageStatus: (url: string, text: string) => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; sendVideoStatus: (url: string, text: string) => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; deleteStatus: (msgId: string) => Promise<{ session: string; device: string; status: number; type: string; message: string; }>; processMessage: (message: import("../Proto").proto.IWebMessageInfo, chatUpdate: Partial) => Promise; sendMessageAck: ({ tag, attrs }: import("../Internal").BinaryNode, extraAttrs: { [key: string]: string; }) => Promise; sendRetryRequest: (node: import("../Internal").BinaryNode) => Promise; appPatch: (patchCreate: import("../Models").WAPatchCreate) => Promise; sendPresenceUpdate: (type: import("../Models").WAPresence, toJid?: string) => Promise; presenceSubscribe: (toJid: string) => Promise; profilePictureUrl: (jid: string, type?: "image" | "preview", timeoutMs?: number) => Promise; onWhatsApp: (...jids: string[]) => Promise<{ exists: boolean; jid: string; }[]>; fetchBlocklist: () => Promise; fetchStatus: (jid: string) => Promise<{ status: string; setAt: Date; }>; updateProfilePicture: (jid: string, content: import("../Models").WAMediaUpload) => 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: import("../Proto").proto.IMessage, { messageId: msgId, participant, additionalAttributes, cachedGroupMetadata }: import("../Models").MessageRelayOptions) => Promise; sendReceipt: (jid: string, participant: string, messageIds: string[], type: "read" | "read-self") => Promise; sendReadReceipt: (jid: string, participant: string, messageIds: string[]) => Promise; refreshMediaConn: (forceGet?: boolean) => Promise; waUploadToServer: import("../Models").WAMediaUploadFunction; fetchPrivacySettings: (force?: boolean) => Promise<{ [_: string]: string; }>; 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; 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" | "not_announcement" | "locked" | "unlocked") => Promise; groupFetchAllParticipating: () => Promise<{ [_: string]: import("../Models").GroupMetadata; }>; type: "md"; ws: import("ws"); ev: import("../Models").SuperChatsEventEmitter; authState: { creds: import("../Models").AuthenticationCreds; keys: import("../Models").SignalKeyStoreWithTransaction; }; user: import("../Models").Contact; assertingPreKeys: (range: number, execute: (keys: { [_: number]: any; }) => Promise) => Promise; generateMessageTag: () => string; query: (node: import("../Internal").BinaryNode, timeoutMs?: number) => Promise; waitForMessage: (msgId: string, timeoutMs?: number) => Promise; waitForSocketOpen: () => Promise; sendRawMessage: (data: Uint8Array | Buffer) => Promise; sendNode: (node: import("../Internal").BinaryNode) => Promise; logout: () => Promise; close: () => Promise; end: (error: Error) => void; onUnexpectedError: (error: Error, msg: string) => void; logs_e: (message: string) => void; logs_i: (message: string) => void; waitForConnectionUpdate: (check: (u: Partial) => boolean, timeoutMs?: number) => Promise; 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<{}>; }; declare type timerMute = "hour" | "week" | "ever"; export declare enum ChatModification { archive = "archive", unarchive = "unarchive", pin = "pin", unpin = "unpin", mute = "mute", unmute = "unmute", delete = "delete", clear = "clear" } export declare enum Presence { unavailable = "unavailable", available = "available", composing = "composing", recording = "recording", paused = "paused" } export {};