import { proto } from '../../WAProto/index.js'; import { type GroupMetadata, type ParticipantAction, type SocketConfig, type WAMessageKey } from '../Types/index.js'; import { type BinaryNode } from '../WABinary/index.js'; export declare const makeCommunitiesSocket: (config: SocketConfig) => { communityMetadata: (jid: string) => Promise; communityCreate: (subject: string, body: string) => Promise; communityCreateGroup: (subject: string, participants: string[], parentCommunityJid: string) => Promise; communityLeave: (id: string) => Promise; communityUpdateSubject: (jid: string, subject: string) => Promise; communityLinkGroup: (groupJid: string, parentCommunityJid: string) => Promise; communityUnlinkGroup: (groupJid: string, parentCommunityJid: string) => Promise; communityFetchLinkedGroups: (jid: string) => Promise<{ communityJid: string; isCommunity: boolean; linkedGroups: { id: string | undefined; subject: string; creation: number | undefined; owner: string | undefined; size: number | undefined; }[]; }>; communityRequestParticipantsList: (jid: string) => Promise<{ [key: string]: string; }[]>; communityRequestParticipantsUpdate: (jid: string, participants: string[], action: "approve" | "reject") => Promise<{ status: string; jid: string | undefined; }[]>; communityParticipantsUpdate: (jid: string, participants: string[], action: ParticipantAction) => Promise<{ status: string; jid: string | undefined; content: BinaryNode; }[]>; communityUpdateDescription: (jid: string, description?: string) => Promise; communityInviteCode: (jid: string) => Promise; communityRevokeInvite: (jid: string) => Promise; communityAcceptInvite: (code: string) => Promise; /** * revoke a v4 invite for someone * @param communityJid community jid * @param invitedJid jid of person you invited * @returns true if successful */ communityRevokeInviteV4: (communityJid: string, invitedJid: string) => Promise; /** * accept a CommunityInviteMessage * @param key the key of the invite message, or optionally only provide the jid of the person who sent the invite * @param inviteMessage the message to accept */ communityAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise; communityGetInviteInfo: (code: string) => Promise; communityToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise; communitySettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise; communityMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise; communityJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise; communityFetchAllParticipating: () => Promise<{ [_: string]: GroupMetadata; }>; logger: import("../Utils/logger.js").ILogger; getOrderDetails: (orderId: string, tokenBase64: string) => Promise; getCatalog: ({ jid, limit, cursor }: import("../Types/index.js").GetCatalogOptions) => Promise<{ products: import("../Types/index.js").Product[]; nextPageCursor: string | undefined; }>; getCollections: (jid?: string, limit?: number) => Promise<{ collections: import("../Types/index.js").CatalogCollection[]; }>; productCreate: (create: import("../Types/index.js").ProductCreate) => Promise; productDelete: (productIds: string[]) => Promise<{ deleted: number; }>; productUpdate: (productId: string, update: import("../Types/index.js").ProductUpdate) => Promise; updateBussinesProfile: (args: import("../Types/Bussines.js").UpdateBussinesProfileProps) => Promise; updateCoverPhoto: (photo: import("../Types/index.js").WAMediaUpload) => Promise; removeCoverPhoto: (id: string) => Promise; sendMessageAck: ({ tag, attrs, content }: BinaryNode, errorCode?: number) => Promise; sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise; rejectCall: (callId: string, callFrom: string) => Promise; fetchMessageHistory: (count: number, oldestMsgKey: WAMessageKey, oldestMsgTimestamp: number | Long) => Promise; requestPlaceholderResend: (messageKey: WAMessageKey) => Promise; messageRetryManager: import("../Utils/index.js").MessageRetryManager | null; getPrivacyTokens: (jids: string[]) => Promise; assertSessions: (jids: string[], force?: boolean) => Promise; relayMessage: (jid: string, message: proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList }: import("../Types/index.js").MessageRelayOptions) => Promise; sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types/index.js").MessageReceiptType) => Promise; sendReceipts: (keys: WAMessageKey[], type: import("../Types/index.js").MessageReceiptType) => Promise; readMessages: (keys: WAMessageKey[]) => Promise; refreshMediaConn: (forceGet?: boolean) => Promise; waUploadToServer: import("../Types/index.js").WAMediaUploadFunction; fetchPrivacySettings: (force?: boolean) => Promise<{ [_: string]: string; }>; sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise; createParticipantNodes: (recipientJids: string[], message: proto.IMessage, extraAttrs?: BinaryNode["attrs"], dsmMessage?: proto.IMessage) => Promise<{ nodes: BinaryNode[]; shouldIncludeDeviceIdentity: boolean; }>; getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("../WABinary/index.js").JidWithDevice & { jid: string; })[]>; updateMediaMessage: (message: import("../Types/index.js").WAMessage) => Promise; sendMessage: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise; newsletterCreate: (name: string, description?: string) => Promise; newsletterUpdate: (jid: string, updates: import("../Types/index.js").NewsletterUpdate) => Promise; newsletterSubscribers: (jid: string) => Promise<{ subscribers: number; }>; newsletterMetadata: (type: "invite" | "jid", key: string) => Promise; newsletterFollow: (jid: string) => Promise; newsletterUnfollow: (jid: string) => Promise; newsletterMute: (jid: string) => Promise; newsletterUnmute: (jid: string) => Promise; newsletterUpdateName: (jid: string, name: string) => Promise; newsletterUpdateDescription: (jid: string, description: string) => Promise; newsletterUpdatePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload) => Promise; newsletterRemovePicture: (jid: string) => Promise; newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise; newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise; subscribeNewsletterUpdates: (jid: string) => Promise<{ duration: string; } | null>; newsletterAdminCount: (jid: string) => Promise; newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise; newsletterDemote: (jid: string, userJid: string) => Promise; newsletterDelete: (jid: string) => Promise; groupMetadata: (jid: string) => Promise; groupCreate: (subject: string, participants: 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: "approve" | "reject") => Promise<{ status: string; jid: string | undefined; }[]>; groupParticipantsUpdate: (jid: string, participants: string[], action: ParticipantAction) => Promise<{ status: string; jid: string | undefined; content: BinaryNode; }[]>; groupUpdateDescription: (jid: string, description?: string) => Promise; groupInviteCode: (jid: string) => Promise; groupRevokeInvite: (jid: string) => Promise; groupAcceptInvite: (code: string) => Promise; groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise; groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise; groupGetInviteInfo: (code: string) => Promise; groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise; groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise; groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise; groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise; groupFetchAllParticipating: () => Promise<{ [_: string]: GroupMetadata; }>; createCallLink: (type: "audio" | "video", event?: { startTime: number; }, timeoutMs?: number) => Promise; getBotListV2: () => Promise; processingMutex: { mutex(code: () => Promise | T): Promise; }; upsertMessage: (msg: import("../Types/index.js").WAMessage, type: import("../Types/index.js").MessageUpsertType) => Promise; appPatch: (patchCreate: import("../Types/index.js").WAPatchCreate) => Promise; sendPresenceUpdate: (type: import("../Types/index.js").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: import("../Types/index.js").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: import("../Types/index.js").WAPrivacyCallValue) => Promise; updateMessagesPrivacy: (value: import("../Types/index.js").WAPrivacyMessagesValue) => Promise; updateLastSeenPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise; updateOnlinePrivacy: (value: import("../Types/index.js").WAPrivacyOnlineValue) => Promise; updateProfilePicturePrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise; updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise; updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise; updateGroupsAddPrivacy: (value: import("../Types/index.js").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: import("../Types/index.js").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: import("../Types/Label.js").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: import("../Types/Bussines.js").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 | import("@hapi/boom").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: import("../index.js").USyncQuery) => Promise; onWhatsApp: (...phoneNumber: string[]) => Promise<{ jid: string; exists: boolean; }[] | undefined>; }; export declare const extractCommunityMetadata: (result: BinaryNode) => GroupMetadata; //# sourceMappingURL=communities.d.ts.map