///
import { SocketConfig } from "../../Models";
import { proto } from '../enc';
export declare const makeMessagesAdittionalSocket: (config: SocketConfig) => {
requestPayment: (id: string) => Promise<{}>;
sendText: (id: string, text: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendButtons: (id: string, title: string, buttons: any, description?: string, type?: string, url?: string, footer?: string) => Promise<{}>;
sendReaction: (id: string, text: string, options: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
}) => Promise<{}>;
sendImage: (id: string, file: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendVideo: (id: string, file: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendDocument: (id: string, file: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendAudio: (id: string, file: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendVoice: (id: string, file: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendLocation: (id: string, latitude: number, logitude: number, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendContact: (id: string, name: string, contact: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendSticker: (id: string, file: string, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendList: (id: string, btnName: string, sections: Array<{
title: string;
rows: Array<{
title: string;
description: string;
rowId: string;
}>;
}>, options?: {
content?: string | undefined;
caption?: string | undefined;
mimetype?: string | undefined;
viewOnce?: boolean | undefined;
reply?: string | undefined;
ptv?: boolean | undefined;
filename?: string | undefined;
address?: string | undefined;
titleBtn?: string | undefined;
description?: string | undefined;
footerBtn?: string | undefined;
msgId?: string | undefined;
} | undefined) => Promise<{}>;
sendPoll: (id: string, title: string, options: any) => Promise<{}>;
sendTextStatus: (text: string, font: number, color: string) => Promise<{
session: any;
id: any;
device: string | undefined;
status: number;
type: string;
message?: undefined;
} | {
session: any;
device: string | undefined;
status: number;
type: string;
message: string;
id?: undefined;
}>;
sendImageStatus: (file: string, text?: string) => Promise<{
session: any;
id: any;
device: string | undefined;
status: number;
type: string;
message?: undefined;
} | {
session: any;
device: string | undefined;
status: number;
type: string;
message: string;
id?: undefined;
}>;
sendVideoStatus: (file: string, text?: string) => Promise<{
session: any;
id: any;
device: string | undefined;
status: number;
type: string;
message?: undefined;
} | {
session: any;
device: string | undefined;
status: number;
type: string;
message: string;
id?: undefined;
}>;
deleteStatus: (msgId: string) => Promise<{
session: any;
id: any;
device: string | undefined;
status: number;
type: string;
message?: undefined;
} | {
session: any;
device: string | undefined;
status: number;
type: string;
message: string;
id?: undefined;
}>;
messageTemporary: (id: string, time: timeTemp) => Promise<{}>;
sendCarouselMessage: (id: string, outerText: string | undefined, cards: Array<{
headerImage?: string;
title?: string;
body: string;
footer?: string;
buttons: Array<{
name: string;
buttonParamsJson: string | object;
}>;
}>) => Promise<{}>;
sendMessageAck: ({ tag, attrs, content }: import("../../Internal").BinaryNode) => Promise;
sendRetryRequest: (node: import("../../Internal").BinaryNode, forceIncludeKeys?: boolean) => Promise;
rejectCall: (callId: string, callFrom: string) => Promise;
offerCall: (toJid: string, isVideo?: boolean) => Promise<{
id: string;
to: string;
}>;
terminateCall: (callId: string, toJid: string) => Promise;
getPrivacyTokens: (jids: string[]) => Promise;
assertSessions: (jids: string[], force: boolean) => Promise;
relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, useUserDevicesCache, cachedGroupMetadata, statusJidList }: import("../../Models").MessageRelayOptions) => Promise;
sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../../Models").MessageReceiptType) => Promise;
getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise;
createParticipantNodes: (jids: string[], message: proto.IMessage, extraAttrs?: {
[key: string]: string;
} | undefined) => Promise<{
nodes: import("../../Internal").BinaryNode[];
shouldIncludeDeviceIdentity: boolean;
}>;
sendReceipts: (keys: import("../../Models").WAMessageKey[], type: import("../../Models").MessageReceiptType) => Promise;
readMessages: (keys: import("../../Models").WAMessageKey[]) => 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;
subscribeNewsletterUpdates: (jid: string) => Promise<{
duration: string;
}>;
newsletterReactionMode: (jid: string, mode: import("../../Models").NewsletterReactionMode) => Promise;
newsletterUpdateDescription: (jid: string, description?: string | undefined) => Promise;
newsletterUpdateName: (jid: string, name: string) => Promise;
newsletterUpdatePicture: (jid: string, content: import("../../Models").WAMediaUpload) => Promise;
newsletterRemovePicture: (jid: string) => Promise;
newsletterUnfollow: (jid: string) => Promise;
newsletterFollow: (jid: string) => Promise;
newsletterUnmute: (jid: string) => Promise;
newsletterMute: (jid: string) => Promise;
newsletterCreate: (name: string, description: string) => Promise;
newsletterMetadata: (type: "invite" | "jid", key: string, role?: import("../../Models").NewsletterViewRole | undefined) => Promise;
newsletterAdminCount: (jid: string) => Promise;
newsletterChangeOwner: (jid: string, user: string) => Promise;
newsletterDemote: (jid: string, user: string) => Promise;
newsletterDelete: (jid: string) => Promise;
newsletterReactMessage: (jid: string, server_id: string, code?: string | undefined) => Promise;
newsletterFetchMessages: (type: "invite" | "jid", key: string, count: number, after?: number | undefined) => Promise;
newsletterFetchUpdates: (jid: string, count: number, after?: number | undefined, since?: number | undefined) => Promise;
groupMetadata: (jid: string) => Promise;
groupCreate: (subject: string, participants: string[]) => Promise;
communityCreate: (subject: string) => Promise;
groupLeave: (id: string) => Promise;
groupUpdateSubject: (jid: string, subject: string) => Promise;
groupRequestParticipantsList: (jid: string) => Promise<{
[key: string]: string;
}[]>;
groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "reject" | "approve") => Promise<{
status: string;
jid: string;
}[]>;
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../../Models").ParticipantAction) => Promise<{
status: string;
jid: string;
content: import("../../Internal").BinaryNode;
}[]>;
groupUpdateDescription: (jid: string, description?: string | undefined) => Promise;
groupInviteCode: (jid: string) => Promise;
groupRevokeInvite: (jid: string) => Promise;
groupAcceptInvite: (code: string) => Promise;
groupAcceptInviteV4: (key: string | import("../../Models").WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise;
groupGetInviteInfo: (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;
}>;
processingMutex: {
mutex(code: () => T | Promise): Promise;
};
upsertMessage: (msg: proto.IWebMessageInfo, type: import("../../Models").MessageUpsertType) => Promise;
appPatch: (patchCreate: import("../../Models").WAPatchCreate) => Promise;
sendPresenceUpdate: (type: import("../../Models").WAPresence, toJid?: string | undefined) => Promise;
presenceSubscribe: (toJid: string, tcToken?: Buffer | undefined) => Promise;
profilePictureUrl: (jid: any, type?: string, timeoutMs?: number | undefined) => Promise;
onWhatsApp: (...jids: string[]) => Promise<{
exists: boolean;
jid: string;
}[]>;
fetchBlocklist: () => Promise;
fetchStatus: (jid: string) => Promise<{
status: string | undefined;
setAt: Date;
} | undefined>;
updateProfilePicture: (jid: string, content: import("../../Models").WAMediaUpload) => Promise;
removeProfilePicture: (jid: string) => Promise;
updateProfileStatus: (status: string) => Promise;
updateProfileName: (name: string) => Promise;
updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise;
updateLastSeenPrivacy: (value: import("../../Models").WAPrivacyValue) => Promise;
updateOnlinePrivacy: (value: import("../../Models").WAPrivacyOnlineValue) => Promise;
updateProfilePicturePrivacy: (value: import("../../Models").WAPrivacyValue) => Promise;
updateStatusPrivacy: (value: import("../../Models").WAPrivacyValue) => Promise;
updateReadReceiptsPrivacy: (value: import("../../Models").WAReadReceiptsValue) => Promise;
updateGroupsAddPrivacy: (value: import("../../Models").WAPrivacyValue) => Promise;
updateDefaultDisappearingMode: (duration: number) => Promise;
getBusinessProfile: (jid: string) => Promise;
resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise;
chatModify: (mod: import("../../Models").ChatModification, jid: string) => Promise;
cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: string | number | undefined) => 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;
logout: (msg?: string | undefined) => Promise;
end: (error: Error | undefined, qr?: boolean) => void;
onUnexpectedError: (err: Error | import("@hapi/boom").Boom, msg: string) => void;
uploadPreKeys: (count?: number) => Promise;
uploadPreKeysToServerIfRequired: () => Promise;
requestPairingCode: (phoneNumber: string) => Promise;
waitForConnectionUpdate: (check: (u: Partial) => boolean | undefined, timeoutMs?: number | undefined) => Promise;
addInfoObjects: (name: any, extend: any) => boolean;
getUser: (name: any) => any;
checkAddUser: (name: any) => boolean;
checkUser: (name: any) => boolean;
sessionsDir: (sessionId?: string | undefined, dir?: string) => string;
checkSession: (name: any) => boolean;
getSessionKey: (name: any) => string | false;
searchObjects: (phone: 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: any;
ev: import("../../Models").OrkestralEventEmitter & {
process(handler: (events: Partial) => void | Promise): () => void;
buffer(): void;
createBufferedFunction(work: (...args: A) => Promise): (...args: A) => Promise;
flush(force?: boolean | undefined): boolean;
isBuffering(): boolean;
};
authState: {
creds: import("../../Models").AuthenticationCreds;
keys: import("../../Models").SignalKeyStoreWithTransaction;
};
signalRepository: import("../../Models").SignalRepository;
user: import("../../Models").Contact | undefined;
generateMessageTag: () => string;
query: (node: import("../../Internal").BinaryNode, timeoutMs?: number | undefined) => Promise;
waitForMessage: (msgId: string, timeoutMs?: number | undefined) => Promise;
waitForSocketOpen: () => Promise;
sendRawMessage: (data: Uint8Array | Buffer) => Promise;
sendNode: (frame: import("../../Internal").BinaryNode) => Promise;
close: () => void;
createGroup: (name: string, participants: any) => Promise<{}>;
addParticipantsGroup: (id: string, participants: any) => Promise<{}>;
createCommunity: (name: string) => Promise<{}>;
approveParticipantsGroup: (id: string, participants: any, action: "reject" | "approve") => Promise<{}>;
removeParticipantsGroup: (id: string, participants: any) => Promise<{}>;
getParticipantsPending: (id: string) => 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<{}>;
removeNewsPicture: (id: string) => Promise<{}>;
createNews: (name: string, description: string) => Promise<{}>;
newsTitle: (id: string, title: string) => Promise<{}>;
newsDescription: (id: string, description: string) => Promise<{}>;
setNewsPicture: (id: string, file: string) => Promise<{}>;
};
type timeTemp = "7" | "90" | "0";
export {};