export function makeGroupsSocket(config: any): {
    groupMetadata: (jid: any) => Promise<{
        id: string;
        notify: string;
        addressingMode: WAMessageAddressingMode;
        subject: string;
        subjectOwner: string;
        subjectOwnerPn: string;
        subjectTime: number;
        size: number;
        creation: number;
        owner: string;
        ownerPn: string;
        owner_country_code: string;
        desc: string;
        descId: string;
        descOwner: string;
        descOwnerPn: string;
        descTime: number;
        linkedParent: string;
        restrict: boolean;
        announce: boolean;
        isCommunity: boolean;
        isCommunityAnnounce: boolean;
        joinApprovalMode: boolean;
        memberAddMode: boolean;
        participants: {
            id: string;
            jid: string;
            phoneNumber: string;
            lid: string;
            admin: string;
        }[];
        ephemeralDuration: number;
    }>;
    groupCreate: (subject: any, participants: any) => Promise<{
        id: string;
        notify: string;
        addressingMode: WAMessageAddressingMode;
        subject: string;
        subjectOwner: string;
        subjectOwnerPn: string;
        subjectTime: number;
        size: number;
        creation: number;
        owner: string;
        ownerPn: string;
        owner_country_code: string;
        desc: string;
        descId: string;
        descOwner: string;
        descOwnerPn: string;
        descTime: number;
        linkedParent: string;
        restrict: boolean;
        announce: boolean;
        isCommunity: boolean;
        isCommunityAnnounce: boolean;
        joinApprovalMode: boolean;
        memberAddMode: boolean;
        participants: {
            id: string;
            jid: string;
            phoneNumber: string;
            lid: string;
            admin: string;
        }[];
        ephemeralDuration: number;
    }>;
    groupLeave: (id: any) => Promise<void>;
    groupUpdateSubject: (jid: any, subject: any) => Promise<void>;
    groupRequestParticipantsList: (jid: any) => Promise<{
        [key: string]: string;
    }[]>;
    groupRequestParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<{
        status: string;
        jid: string;
    }[]>;
    groupParticipantsUpdate: (jid: any, participants: any, action: any) => Promise<{
        status: string;
        jid: string;
        content: import("../WABinary/types.js").BinaryNode;
    }[]>;
    groupUpdateDescription: (jid: any, description: any) => Promise<void>;
    groupInviteCode: (jid: any) => Promise<string>;
    groupRevokeInvite: (jid: any) => Promise<string>;
    groupAcceptInvite: (code: any) => Promise<string>;
    /**
     * revoke a v4 invite for someone
     * @param groupJid group jid
     * @param invitedJid jid of person you invited
     * @returns true if successful
     */
    groupRevokeInviteV4: (groupJid: any, invitedJid: any) => Promise<boolean>;
    /**
     * accept a GroupInviteMessage
     * @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
     */
    groupAcceptInviteV4: (key: any, inviteMessage: any) => Promise<any>;
    groupGetInviteInfo: (code: any) => Promise<{
        id: string;
        notify: string;
        addressingMode: WAMessageAddressingMode;
        subject: string;
        subjectOwner: string;
        subjectOwnerPn: string;
        subjectTime: number;
        size: number;
        creation: number;
        owner: string;
        ownerPn: string;
        owner_country_code: string;
        desc: string;
        descId: string;
        descOwner: string;
        descOwnerPn: string;
        descTime: number;
        linkedParent: string;
        restrict: boolean;
        announce: boolean;
        isCommunity: boolean;
        isCommunityAnnounce: boolean;
        joinApprovalMode: boolean;
        memberAddMode: boolean;
        participants: {
            id: string;
            jid: string;
            phoneNumber: string;
            lid: string;
            admin: string;
        }[];
        ephemeralDuration: number;
    }>;
    groupToggleEphemeral: (jid: any, ephemeralExpiration: any) => Promise<void>;
    groupSettingUpdate: (jid: any, setting: any) => Promise<void>;
    groupMemberAddMode: (jid: any, mode: any) => Promise<void>;
    groupJoinApprovalMode: (jid: any, mode: any) => Promise<void>;
    groupFetchAllParticipating: () => Promise<{}>;
    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>;
    };
    fetchPrivacySettings: (force?: boolean) => Promise<{
        [_: string]: string;
    }>;
    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: 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 extractGroupMetadata(result: any): {
    id: string;
    notify: string;
    addressingMode: WAMessageAddressingMode;
    subject: string;
    subjectOwner: string;
    subjectOwnerPn: string;
    subjectTime: number;
    size: number;
    creation: number;
    owner: string;
    ownerPn: string;
    owner_country_code: string;
    desc: string;
    descId: string;
    descOwner: string;
    descOwnerPn: string;
    descTime: number;
    linkedParent: string;
    restrict: boolean;
    announce: boolean;
    isCommunity: boolean;
    isCommunityAnnounce: boolean;
    joinApprovalMode: boolean;
    memberAddMode: boolean;
    participants: {
        id: string;
        jid: string;
        phoneNumber: string;
        lid: string;
        admin: string;
    }[];
    ephemeralDuration: number;
};
import { WAMessageAddressingMode } from '../Types/index.js';
import { proto } from '../../WAProto/index.js';
