import { Boom } from '@hapi/boom'; import { proto } from '../../WAProto/index.js'; import type { BotListInfo, ChatModification, MessageUpsertType, SocketConfig, WABusinessProfile, WAMediaUpload, WAMessage, WAPatchCreate, WAPresence, WAPrivacyCallValue, WAPrivacyGroupAddValue, WAPrivacyMessagesValue, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '../Types/index.js'; import type { QuickReplyAction } from '../Types/Bussines.js'; import type { LabelActionBody } from '../Types/Label.js'; import { type BinaryNode } from '../WABinary/index.js'; import { USyncQuery } from '../WAUSync/index.js'; export declare const makeChatsSocket: (config: SocketConfig) => { createCallLink: (type: "audio" | "video", event?: { startTime: number; }, timeoutMs?: number) => Promise; getBotListV2: () => Promise; processingMutex: { mutex(code: () => Promise | T): Promise; }; fetchPrivacySettings: (force?: boolean) => Promise<{ [_: string]: string; }>; upsertMessage: (msg: WAMessage, type: MessageUpsertType) => Promise; appPatch: (patchCreate: WAPatchCreate) => Promise; sendPresenceUpdate: (type: WAPresence, toJid?: string) => Promise; presenceSubscribe: (toJid: string, tcToken?: Buffer) => Promise; profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise; fetchBlocklist: () => Promise<(string | undefined)[]>; fetchStatus: (...jids: string[]) => Promise; fetchDisappearingDuration: (...jids: string[]) => Promise; updateProfilePicture: (jid: string, content: WAMediaUpload, dimensions?: { width: number; height: number; }) => Promise; removeProfilePicture: (jid: string) => Promise; updateProfileStatus: (status: string) => Promise; updateProfileName: (name: string) => Promise; updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise; updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise; updateCallPrivacy: (value: WAPrivacyCallValue) => Promise; updateMessagesPrivacy: (value: WAPrivacyMessagesValue) => Promise; updateLastSeenPrivacy: (value: WAPrivacyValue) => Promise; updateOnlinePrivacy: (value: WAPrivacyOnlineValue) => Promise; updateProfilePicturePrivacy: (value: WAPrivacyValue) => Promise; updateStatusPrivacy: (value: WAPrivacyValue) => Promise; updateReadReceiptsPrivacy: (value: WAReadReceiptsValue) => Promise; updateGroupsAddPrivacy: (value: WAPrivacyGroupAddValue) => Promise; updateDefaultDisappearingMode: (duration: number) => Promise; getBusinessProfile: (jid: string) => Promise; resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise; chatModify: (mod: ChatModification, jid: string) => Promise; cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise; addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise; removeContact: (jid: string) => Promise; addLabel: (jid: string, labels: LabelActionBody) => 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; star: (jid: string, messages: { id: string; fromMe?: boolean; }[], star: boolean) => Promise; addOrEditQuickReply: (quickReply: QuickReplyAction) => Promise; removeQuickReply: (timestamp: string) => Promise; type: "md"; ws: import("./Client/websocket.js").WebSocketClient; ev: import("../Types/index.js").BaileysEventEmitter & { process(handler: (events: Partial) => void | Promise): () => void; buffer(): void; createBufferedFunction(work: (...args: A) => Promise): (...args: A) => Promise; flush(): boolean; isBuffering(): boolean; }; authState: { creds: import("../Types/index.js").AuthenticationCreds; keys: import("../Types/index.js").SignalKeyStoreWithTransaction; }; signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore; user: import("../Types/index.js").Contact | undefined; generateMessageTag: () => string; query: (node: BinaryNode, timeoutMs?: number) => Promise; waitForMessage: (msgId: string, timeoutMs?: number | undefined) => Promise; waitForSocketOpen: () => Promise; sendRawMessage: (data: Uint8Array | Buffer) => Promise; sendNode: (frame: BinaryNode) => Promise; logout: (msg?: string) => Promise; end: (error: Error | undefined) => void; onUnexpectedError: (err: Error | Boom, msg: string) => void; uploadPreKeys: (count?: number, retryCount?: number) => Promise; uploadPreKeysToServerIfRequired: () => Promise; digestKeyBundle: () => Promise; rotateSignedPreKey: () => Promise; requestPairingCode: (phoneNumber: string, customPairingCode?: string) => Promise; wamBuffer: import("../index.js").BinaryInfo; waitForConnectionUpdate: (check: (u: Partial) => Promise, timeoutMs?: number) => Promise; sendWAMBuffer: (wamBuffer: Buffer) => Promise; executeUSyncQuery: (usyncQuery: USyncQuery) => Promise; onWhatsApp: (...phoneNumber: string[]) => Promise<{ jid: string; exists: boolean; }[] | undefined>; }; //# sourceMappingURL=chats.d.ts.map