/* Elaina Baileys maintained distribution. Upstream notices and license are preserved in LICENSE and NOTICE.md. */ export function buildProfilePictureQueryContent(type: any, tcTokenContent: any): { tag: string; attrs: { type: any; query: string; }; }[]; export function readSpamReportResult(sent: { tag: string; attrs: Record; }, result: any): { jid: string; flow: string; reported: true; node: any; }; export function buildSpamListNode(jid: string, options?: { flow?: string; source?: string; subject?: string; isKnownChat?: boolean; }): { tag: string; attrs: Record; }; export function makeChatsSocket(config: any): { checkAccountHealth: (jid: string) => Promise<{ jid: string; exists: boolean; isBusiness: boolean; verifiedName: string | null; about: string | null; hasProfilePhoto: boolean; self: { capped: boolean; warned: boolean; unlimited: boolean; remaining: number | null; } | null; notes: string[]; }>; findUserId: (pnLid: any) => Promise<{ lid: undefined; phoneNumber: undefined; }>; serverProps: { /** AB prop 10518: gate tctoken on 1:1 messages. Default true (safe: avoids 463). */ privacyTokenOn1to1: boolean; /** AB prop 9666: gate tctoken on profile picture IQs. WA Web default: true. */ profilePicPrivacyToken: boolean; /** AB prop 14303: issue tctokens to LID instead of PN. WA Web default: false. */ lidTrustedTokenIssueToLid: boolean; }; /** Every AB prop the server pushed, keyed by both its number and its name. */ fetchProps: () => Promise>; getServerProps: (options?: { refresh?: boolean }) => Promise>; createCallLink: (type: any, event: any, timeoutMs: any) => Promise; getBotListV2: () => Promise<{ jid: any; personaId: any; }[]>; messageMutex: { mutex(code: any): any; }; receiptMutex: { mutex(code: any): any; }; appStatePatchMutex: { mutex(code: any): any; }; notificationMutex: { mutex(code: any): any; }; fetchPrivacySettings: (force?: boolean) => Promise; upsertMessage: (...args: any[]) => Promise; appPatch: (patchCreate: any) => Promise; sendPresenceUpdate: (type: any, toJid: any) => Promise; presenceSubscribe: (toJid: any) => Promise; profilePictureUrl: (jid: any, type?: string, timeoutMs?: number, shouldIncludeTcToken?: boolean) => Promise; fetchBlocklist: () => Promise; fetchStatus: (...jids: any[]) => Promise; fetchDisappearingDuration: (...jids: any[]) => Promise; updateProfilePicture: (jid: any, content: any, dimensions: any) => Promise; removeProfilePicture: (jid: any) => Promise; updateProfileStatus: (status: any) => Promise; getUsername: () => Promise<{ username: string | null; state: string | null; pin: string | null; }>; setUsername: (username?: string, options?: { reserved?: boolean; sessionId?: string; source?: string; }) => Promise; removeUsername: () => Promise; setUsernamePin: (pin: string) => Promise; removeUsernamePin: () => Promise; checkUsernameAvailability: (username: string, options?: { sessionId?: string; source?: string; }) => Promise<{ available: boolean; suggestions: string[]; response: any; }>; updateTextStatus: (text?: string | null, options?: { emoji?: string; ephemeralDurationSec?: number; }) => Promise; fetchTextStatus: (jids: string[] | string) => Promise; fetchAbout: (jid: string) => Promise<{ jid: string; status: string | null; response: any; }>; fetchServerLinkPreview: (url: string) => Promise; fetchUserNotices: (since?: number) => Promise<{ id?: string; stage?: string; t?: string; version?: string; type?: string; }[]>; updateUserNoticeStage: (noticeId: string | number, stage: string | number) => Promise; fetchOptOutList: (options?: { category?: string; dhash?: string; }) => Promise; updateOptOut: (input: { jid: string; category: string; action: string; dhash?: string; reason?: string; entryPoint?: string; signupId?: string; duration?: number; }) => Promise; fetchPushSettings: () => Promise; updateProfileName: (name: any) => Promise; updateBlockStatus: (jid: any, action: any) => Promise; reportSpam: (jid: string, options?: { flow?: string; source?: string; subject?: string; isKnownChat?: boolean; }) => Promise<{ jid: string; flow: string; reported: true; node: any; }>; updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: any) => Promise; updateCallPrivacy: (value: any) => Promise; updateMessagesPrivacy: (value: any) => Promise; updateLastSeenPrivacy: (value: any) => Promise; updateOnlinePrivacy: (value: any) => Promise; updateProfilePicturePrivacy: (value: any) => Promise; updateStatusPrivacy: (value: any) => Promise; updateReadReceiptsPrivacy: (value: any) => Promise; updateGroupsAddPrivacy: (value: any) => Promise; updateDefaultDisappearingMode: (duration: any) => Promise; getBusinessProfile: (jid: any) => Promise<{ wid: any; address: any; description: any; website: any[]; email: any; category: any; business_hours: { timezone: any; business_config: any; }; } | undefined>; resyncAppState: (...args: any[]) => Promise; chatModify: (mod: any, jid: any) => Promise; cleanDirtyBits: (type: any, fromTimestamp: any) => Promise; addOrEditContact: (jid: any, contact: any) => Promise; removeContact: (jid: any) => Promise; placeholderResendCache: any; addLabel: (jid: any, labels: any) => Promise; addChatLabel: (jid: any, labelId: any) => Promise; removeChatLabel: (jid: any, labelId: any) => Promise; addMessageLabel: (jid: any, messageId: any, labelId: any) => Promise; removeMessageLabel: (jid: any, messageId: any, labelId: any) => Promise; star: (jid: any, messages: any, star: any) => Promise; addOrEditQuickReply: (quickReply: any) => Promise; removeQuickReply: (timestamp: any) => Promise; type: string; ws: import("./Client/websocket.js").WebSocketClient; ev: { process(handler: any): () => void; emit(event: any, evData: any): any; isBuffering(): boolean; buffer: () => void; flush: () => boolean; createBufferedFunction(work: any): (...args: any[]) => Promise; on: (...args: any[]) => any; off: (...args: any[]) => any; removeAllListeners: (...args: any[]) => any; destroy(): void; }; authState: { creds: any; keys: { get: (type: any, ids: any) => Promise; set: (data: any) => Promise; isInTransaction: () => boolean; transaction: (work: any, key: any) => Promise; }; }; signalRepository: any; user: any; generateMessageTag: () => string; query: (node: any, timeoutMs: any) => Promise; waitForMessage: (msgId: any, timeoutMs?: any) => Promise; waitForSocketOpen: () => Promise; sendRawMessage: (data: any) => Promise; sendNode: (frame: any) => Promise; logout: (msg: any) => Promise; end: (error: any) => Promise; registerSocketEndHandler: (handler: any) => void; onUnexpectedError: (err: any, msg: any) => void; uploadPreKeys: (count?: number) => Promise; uploadPreKeysToServerIfRequired: () => Promise; digestKeyBundle: () => Promise; rotateSignedPreKey: () => Promise; requestPairingCode: (phoneNumber: any, customPairingCode: any) => Promise; updateServerTimeOffset: ({ attrs }: { attrs: any; }) => void; sendUnifiedSession: () => Promise; wamBuffer: import("../index.js").BinaryInfo; waitForConnectionUpdate: (check: any, timeoutMs: any) => Promise; sendWAMBuffer: (wamBuffer: any) => Promise; executeUSyncQuery: (usyncQuery: any) => Promise; onWhatsApp: (...phoneNumber: any[]) => Promise; onWhatsAppUsername: (...usernames: any[]) => Promise; getUsernames: (...jids: any[]) => Promise; fetchAccountReachoutTimelock: () => Promise<{ isActive: boolean; timeEnforcementEnds: Date | undefined; enforcementType: any; }>; fetchNewChatMessageCap: () => Promise; };