export function makeCommunitiesSocket(config: any): {
    communityMetadata: (jid: any) => Promise<{
        id: string;
        subject: string;
        subjectOwner: string;
        subjectTime: number;
        size: number;
        creation: number;
        owner: string;
        desc: string;
        descId: string;
        linkedParent: string;
        restrict: boolean;
        announce: boolean;
        isCommunity: boolean;
        isCommunityAnnounce: boolean;
        joinApprovalMode: boolean;
        memberAddMode: boolean;
        participants: {
            id: string;
            admin: string;
        }[];
        ephemeralDuration: number;
        addressingMode: string;
    }>;
    communityCreate: (subject: any, body: any) => Promise<any>;
    communityCreateGroup: (subject: any, participants: any, parentCommunityJid: any) => Promise<any>;
    communityLeave: (id: any) => Promise<void>;
    communityUpdateSubject: (jid: any, subject: any) => Promise<void>;
    communityLinkGroup: (groupJid: any, parentCommunityJid: any) => Promise<void>;
    communityUnlinkGroup: (groupJid: any, parentCommunityJid: any) => Promise<void>;
    communityFetchLinkedGroups: (jid: any) => Promise<{
        communityJid: any;
        isCommunity: boolean;
        linkedGroups: {
            id: string;
            subject: string;
            creation: number;
            owner: string;
            size: number;
        }[];
    }>;
    communityRequestParticipantsList: (jid: any) => Promise<{
        [key: string]: string;
    }[]>;
    communityRequestParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<{
        status: string;
        jid: string;
    }[]>;
    communityParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<{
        status: string;
        jid: string;
        content: import("../WABinary/types.js").BinaryNode;
    }[]>;
    communityUpdateDescription: (jid: any, description: any) => Promise<void>;
    communityInviteCode: (jid: any) => Promise<string>;
    communityRevokeInvite: (jid: any) => Promise<string>;
    communityAcceptInvite: (code: any) => Promise<string>;
    /**
     * revoke a v4 invite for someone
     * @param communityJid community jid
     * @param invitedJid jid of person you invited
     * @returns true if successful
     */
    communityRevokeInviteV4: (communityJid: any, invitedJid: any) => Promise<boolean>;
    /**
     * 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: any, inviteMessage: any) => Promise<any>;
    communityGetInviteInfo: (code: any) => Promise<{
        id: string;
        subject: string;
        subjectOwner: string;
        subjectTime: number;
        size: number;
        creation: number;
        owner: string;
        desc: string;
        descId: string;
        linkedParent: string;
        restrict: boolean;
        announce: boolean;
        isCommunity: boolean;
        isCommunityAnnounce: boolean;
        joinApprovalMode: boolean;
        memberAddMode: boolean;
        participants: {
            id: string;
            admin: string;
        }[];
        ephemeralDuration: number;
        addressingMode: string;
    }>;
    communityToggleEphemeral: (jid: any, ephemeralExpiration: any) => Promise<void>;
    communitySettingUpdate: (jid: any, setting: any) => Promise<void>;
    communityMemberAddMode: (jid: any, mode: any) => Promise<void>;
    communityJoinApprovalMode: (jid: any, mode: any) => Promise<void>;
    communityFetchAllParticipating: () => Promise<{}>;
    logger: import("../Utils/logger.js").ILogger;
    getOrderDetails: (orderId: string, tokenBase64: string) => Promise<import("../Types/Product.js").OrderDetails>;
    getCatalog: ({ jid, limit, cursor }: import("../Types/Product.js").GetCatalogOptions) => Promise<{
        products: import("../Types/Product.js").Product[];
        nextPageCursor: string | undefined;
    }>;
    getCollections: (jid?: string, limit?: number) => Promise<{
        collections: import("../Types/Product.js").CatalogCollection[];
    }>;
    productCreate: (create: import("../Types/Product.js").ProductCreate) => Promise<import("../Types/Product.js").Product>;
    productDelete: (productIds: string[]) => Promise<{
        deleted: number;
    }>;
    productUpdate: (productId: string, update: import("../Types/Product.js").ProductUpdate) => Promise<import("../Types/Product.js").Product>;
    updateBussinesProfile: (args: import("../Types/Bussines.js").UpdateBussinesProfileProps) => Promise<any>;
    updateCoverPhoto: (photo: import("../Types/Message.js").WAMediaUpload) => Promise<number>;
    removeCoverPhoto: (id: string) => Promise<any>;
    sendMessageAck: (node: import("../WABinary/types.js").BinaryNode, errorCode?: number) => Promise<void>;
    sendRetryRequest: (node: import("../WABinary/types.js").BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
    rejectCall: (callId: string, callFrom: string) => Promise<void>;
    fetchMessageHistory: (count: number, oldestMsgKey: import("../Types/Message.js").WAMessageKey, oldestMsgTimestamp: number | import("long").default) => Promise<string>;
    requestPlaceholderResend: (messageKey: import("../Types/Message.js").WAMessageKey, msgData?: Partial<import("../Types/Message.js").WAMessage>) => Promise<string | undefined>;
    messageRetryManager: import("../Utils/message-retry-manager.js").MessageRetryManager | null;
    getPrivacyTokens: (jids: string[]) => Promise<any>;
    assertSessions: (jids: string[], force?: boolean) => Promise<boolean>;
    relayMessage: (jid: string, message: import("../index.js").proto.IMessage, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, }: import("../Types/Message.js").MessageRelayOptions) => Promise<string>;
    sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: import("../Types/Message.js").MessageReceiptType) => Promise<void>;
    sendReceipts: (keys: import("../Types/Message.js").WAMessageKey[], type: import("../Types/Message.js").MessageReceiptType) => Promise<void>;
    changli: import("./dugong.js").Dugong;
    readMessages: (keys: import("../Types/Message.js").WAMessageKey[]) => Promise<void>;
    refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types/Message.js").MediaConnInfo>;
    waUploadToServer: import("../Types/Message.js").WAMediaUploadFunction;
    fetchPrivacySettings: (force?: boolean) => Promise<{
        [_: string]: string;
    }>;
    sendPeerDataOperationMessage: (pdoMessage: import("../index.js").proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
    createParticipantNodes: (recipientJids: string[], message: import("../index.js").proto.IMessage, extraAttrs?: import("../WABinary/types.js").BinaryNode["attrs"], dsmMessage?: import("../index.js").proto.IMessage) => Promise<{
        nodes: import("../WABinary/types.js").BinaryNode[];
        shouldIncludeDeviceIdentity: boolean;
    }>;
    getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<(import("../WABinary/jid-utils.js").JidWithDevice & {
        jid: string;
    })[]>;
    updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
    updateMediaMessage: (message: import("../Types/Message.js").WAMessage) => Promise<import("../Types/Message.js").WAMessage>;
    sendStatusMention: (content: any, jids?: string[]) => Promise<import("../Types/Message.js").WAMessage>;
    sendTable: (jid: string, title: string, headers: string[], rows: string[][], quoted?: any, options?: import("../Utils/rich-messages.js").RichMessageOptions) => Promise<{
        message: any;
        messageId: string;
    }>;
    sendList: (jid: string, title: string, items: (string | string[])[], quoted?: any, options?: import("../Utils/rich-messages.js").RichMessageOptions) => Promise<{
        message: any;
        messageId: string;
    }>;
    sendCodeBlock: (jid: string, code: string, quoted?: any, options?: import("../Utils/rich-messages.js").CodeBlockOptions) => Promise<{
        message: any;
        messageId: string;
    }>;
    sendLatex: (jid: string, quoted: any, options: import("../Utils/rich-messages.js").LatexOptions) => Promise<{
        message: any;
        messageId: string;
    }>;
    sendLatexImage: (jid: string, quoted: any, options: import("../Utils/rich-messages.js").LatexImageOptions, renderLatexToPng: import("../Utils/rich-messages.js").LatexRenderFn, uploadFn: import("../Utils/rich-messages.js").MediaUploadFn) => Promise<{
        message: any;
        messageId: string;
    }>;
    sendLatexInlineImage: (jid: string, quoted: any, options: import("../Utils/rich-messages.js").LatexImageOptions, renderLatexToPng: import("../Utils/rich-messages.js").LatexRenderFn, uploadFn: import("../Utils/rich-messages.js").MediaUploadFn) => Promise<{
        message: any;
        messageId: string;
    }>;
    captureUnifiedResponse: (msg: import("../index.js").proto.IMessage) => import("../Utils/rich-messages.js").CapturedUnifiedResponse | null;
    sendUnifiedResponse: (jid: string, quoted: any, captured: import("../Utils/rich-messages.js").CapturedUnifiedResponse) => Promise<{
        message: any;
        messageId: string;
    }>;
    sendRichMessage: (jid: string, submessages: import("../index.js").proto.IAIRichResponseSubMessage[], quoted?: any, options?: {}) => Promise<{
        message: any;
        messageId: string;
    }>;
    sendMessage: (jid: string, content: import("../Types/Message.js").AnyMessageContent, options?: import("../Types/Message.js").MiscMessageGenerationOptions) => Promise<any>;
    newsletterFetchAllSubscribe: () => Promise<unknown>;
    newsletterMultipleFollow: (jids: string) => Promise<void>;
    newsletterAction: (jid: string, type: "follow" | "unfollow" | "mute" | "unmute") => Promise<void>;
    cekIDSaluran: (url: string) => Promise<{
        id: any;
        state: any;
        creation_time: number;
        name: any;
        description: any;
        invite: any;
        picture: string;
        preview: string;
        subscribers: number;
        verification: any;
        viewer_metadata: any;
    }>;
    newsletterCreate: (name: string, description?: string) => Promise<import("../Types/Newsletter.js").NewsletterMetadata>;
    newsletterUpdate: (jid: string, updates: import("../Types/Newsletter.js").NewsletterUpdate) => Promise<unknown>;
    newsletterSubscribers: (jid: string) => Promise<{
        subscribers: number;
    }>;
    newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types/Newsletter.js").NewsletterMetadata | null>;
    newsletterFollow: (jid: string) => Promise<unknown>;
    newsletterUnfollow: (jid: string) => Promise<unknown>;
    newsletterMute: (jid: string) => Promise<unknown>;
    newsletterUnmute: (jid: string) => Promise<unknown>;
    newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
    newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
    newsletterUpdatePicture: (jid: string, content: import("../Types/Message.js").WAMediaUpload) => Promise<unknown>;
    newsletterRemovePicture: (jid: string) => Promise<unknown>;
    newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
    newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
    subscribeNewsletterUpdates: (jid: string) => Promise<{
        duration: string;
    } | null>;
    newsletterAdminCount: (jid: string) => Promise<number>;
    newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
    newsletterDemote: (jid: string, userJid: string) => Promise<void>;
    newsletterDelete: (jid: string) => Promise<void>;
    groupMetadata: (jid: string) => Promise<import("../Types/GroupMetadata.js").GroupMetadata>;
    groupCreate: (subject: string, participants: string[]) => Promise<import("../Types/GroupMetadata.js").GroupMetadata>;
    groupLeave: (id: string) => Promise<void>;
    groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
    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: import("../Types/GroupMetadata.js").ParticipantAction) => Promise<{
        status: string;
        jid: string | undefined;
        content: import("../WABinary/types.js").BinaryNode;
    }[]>;
    groupUpdateDescription: (jid: string, description?: string) => Promise<void>;
    groupInviteCode: (jid: string) => Promise<string | undefined>;
    groupRevokeInvite: (jid: string) => Promise<string | undefined>;
    groupAcceptInvite: (code: string) => Promise<string | undefined>;
    groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
    groupAcceptInviteV4: (key: string | import("../Types/Message.js").WAMessageKey, inviteMessage: import("../index.js").proto.Message.IGroupInviteMessage) => Promise<any>;
    groupGetInviteInfo: (code: string) => Promise<import("../Types/GroupMetadata.js").GroupMetadata>;
    groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
    groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
    groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
    groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
    groupFetchAllParticipating: () => Promise<{
        [_: string]: import("../Types/GroupMetadata.js").GroupMetadata;
    }>;
    createCallLink: (type: "audio" | "video", event?: {
        startTime: number;
    }, timeoutMs?: number) => Promise<string | undefined>;
    getBotListV2: () => Promise<import("../Types/Chat.js").BotListInfo[]>;
    messageMutex: {
        mutex<T>(code: () => Promise<T> | T): Promise<T>;
    };
    receiptMutex: {
        mutex<T>(code: () => Promise<T> | T): Promise<T>;
    };
    appStatePatchMutex: {
        mutex<T>(code: () => Promise<T> | T): Promise<T>;
    };
    notificationMutex: {
        mutex<T>(code: () => Promise<T> | T): Promise<T>;
    };
    upsertMessage: (msg: import("../Types/Message.js").WAMessage, type: import("../Types/Message.js").MessageUpsertType) => Promise<void>;
    appPatch: (patchCreate: import("../Types/Chat.js").WAPatchCreate) => Promise<void>;
    sendPresenceUpdate: (type: import("../Types/Chat.js").WAPresence, toJid?: string) => Promise<void>;
    presenceSubscribe: (toJid: string) => Promise<void>;
    profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
    fetchBlocklist: () => Promise<(string | undefined)[]>;
    fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
    fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
    updateProfilePicture: (jid: string, content: import("../Types/Message.js").WAMediaUpload, dimensions?: {
        width: number;
        height: number;
    }) => Promise<void>;
    removeProfilePicture: (jid: string) => Promise<void>;
    updateProfileStatus: (status: string) => Promise<void>;
    updateProfileName: (name: string) => Promise<void>;
    updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
    updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
    updateCallPrivacy: (value: import("../Types/Chat.js").WAPrivacyCallValue) => Promise<void>;
    updateMessagesPrivacy: (value: import("../Types/Chat.js").WAPrivacyMessagesValue) => Promise<void>;
    updateLastSeenPrivacy: (value: import("../Types/Chat.js").WAPrivacyValue) => Promise<void>;
    updateOnlinePrivacy: (value: import("../Types/Chat.js").WAPrivacyOnlineValue) => Promise<void>;
    updateProfilePicturePrivacy: (value: import("../Types/Chat.js").WAPrivacyValue) => Promise<void>;
    updateStatusPrivacy: (value: import("../Types/Chat.js").WAPrivacyValue) => Promise<void>;
    updateReadReceiptsPrivacy: (value: import("../Types/Chat.js").WAReadReceiptsValue) => Promise<void>;
    updateGroupsAddPrivacy: (value: import("../Types/Chat.js").WAPrivacyGroupAddValue) => Promise<void>;
    updateDefaultDisappearingMode: (duration: number) => Promise<void>;
    getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
    resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
    chatModify: (mod: import("../Types/Chat.js").ChatModification, jid: string) => Promise<void>;
    cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
    addOrEditContact: (jid: string, contact: import("../index.js").proto.SyncActionValue.IContactAction) => Promise<void>;
    removeContact: (jid: string) => Promise<void>;
    addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
    addChatLabel: (jid: string, labelId: string) => Promise<void>;
    removeChatLabel: (jid: string, labelId: string) => Promise<void>;
    addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
    removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
    star: (jid: string, messages: {
        id: string;
        fromMe?: boolean;
    }[], star: boolean) => Promise<void>;
    addOrEditQuickReply: (quickReply: import("../Types/Bussines.js").QuickReplyAction) => Promise<void>;
    removeQuickReply: (timestamp: string) => Promise<void>;
    type: "md";
    ws: import("./Client/websocket.js").WebSocketClient;
    ev: import("../Types/Events.js").BaileysEventEmitter & {
        process(handler: (events: Partial<import("../Types/Events.js").BaileysEventMap>) => void | Promise<void>): () => void;
        buffer(): void;
        createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
        flush(): boolean;
        isBuffering(): boolean;
    };
    authState: {
        creds: import("../Types/Auth.js").AuthenticationCreds;
        keys: import("../Types/Auth.js").SignalKeyStoreWithTransaction;
    };
    signalRepository: import("../Types/Signal.js").SignalRepositoryWithLIDStore;
    user: import("../Types/Contact.js").Contact | undefined;
    generateMessageTag: () => string;
    query: (node: import("../WABinary/types.js").BinaryNode, timeoutMs?: number) => Promise<any>;
    waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
    waitForSocketOpen: () => Promise<void>;
    sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
    sendNode: (frame: import("../WABinary/types.js").BinaryNode) => Promise<void>;
    logout: (msg?: string) => Promise<void>;
    end: (error: Error | undefined) => Promise<void>;
    onUnexpectedError: (err: Error | import("@hapi/boom").Boom, msg: string) => void;
    uploadPreKeys: (count?: number, retryCount?: number) => Promise<void>;
    uploadPreKeysToServerIfRequired: () => Promise<void>;
    digestKeyBundle: () => Promise<void>;
    rotateSignedPreKey: () => Promise<void>;
    requestPairingCode: (phoneNumber: string, customPairingCode?: string) => Promise<string>;
    updateServerTimeOffset: ({ attrs }: import("../WABinary/types.js").BinaryNode) => void;
    sendUnifiedSession: () => Promise<void>;
    wamBuffer: import("../index.js").BinaryInfo;
    waitForConnectionUpdate: (check: (u: Partial<import("../Types/State.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
    sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
    executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
    onWhatsApp: (...phoneNumber: string[]) => Promise<{
        jid: string;
        exists: boolean;
    }[] | undefined>;
};
export function extractCommunityMetadata(result: any): {
    id: string;
    subject: string;
    subjectOwner: string;
    subjectTime: number;
    size: number;
    creation: number;
    owner: string;
    desc: string;
    descId: string;
    linkedParent: string;
    restrict: boolean;
    announce: boolean;
    isCommunity: boolean;
    isCommunityAnnounce: boolean;
    joinApprovalMode: boolean;
    memberAddMode: boolean;
    participants: {
        id: string;
        admin: string;
    }[];
    ephemeralDuration: number;
    addressingMode: string;
};
import { proto } from '../../WAProto/index.js';
