export function makeMessagesSocket(config: any): {
    getPrivacyTokens: (jids: any) => Promise<any>;
    assertSessions: (jids: any, force: any) => Promise<boolean>;
    relayMessage: (jid: any, message: any, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, useCachedGroupMetadata, statusJidList, }: {
        messageId: any;
        participant: any;
        additionalAttributes: any;
        additionalNodes: any;
        useUserDevicesCache: any;
        useCachedGroupMetadata: any;
        statusJidList: any;
    }) => Promise<any>;
    sendReceipt: (jid: any, participant: any, messageIds: any, type: any) => Promise<void>;
    sendReceipts: (keys: any, type: any) => Promise<void>;
    changli: Dugong;
    readMessages: (keys: any) => Promise<void>;
    refreshMediaConn: (forceGet?: boolean) => Promise<any>;
    waUploadToServer: (filePath: any, { mediaType, fileEncSha256B64, newsletter, timeoutMs }: {
        mediaType: any;
        fileEncSha256B64: any;
        newsletter: any;
        timeoutMs: any;
    }) => Promise<{
        mediaUrl: any;
        directPath: any;
        meta_hmac: any;
        fbid: any;
        ts: any;
    }>;
    fetchPrivacySettings: (force?: boolean) => Promise<{
        [_: string]: string;
    }>;
    sendPeerDataOperationMessage: (pdoMessage: any) => Promise<any>;
    createParticipantNodes: (recipientJids: any, message: any, extraAttrs: any, dsmMessage: any) => Promise<{
        nodes: any[];
        shouldIncludeDeviceIdentity: boolean;
    }>;
    getUSyncDevices: (jids: any, useCache: any, ignoreZeroDevices: any) => Promise<any[]>;
    messageRetryManager: MessageRetryManager;
    updateMemberLabel: (jid: any, memberLabel: any) => Promise<any>;
    updateMediaMessage: (message: any) => Promise<any>;
    sendStatusMention: (content: any, jids?: any[]) => Promise<any>;
    sendTable: (jid: any, title: any, headers: any, rows: any, quoted: any, options?: {}) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    sendList: (jid: any, title: any, items: any, quoted: any, options?: {}) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    sendCodeBlock: (jid: any, code: any, quoted: any, options?: {}) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    sendLatex: (jid: any, quoted: any, options: any) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    sendLatexImage: (jid: any, quoted: any, options: any, renderLatexToPng: any, uploadFn: any) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    sendLatexInlineImage: (jid: any, quoted: any, options: any, renderLatexToPng: any, uploadFn: any) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    captureUnifiedResponse: typeof captureUnifiedResponse;
    sendUnifiedResponse: (jid: any, quoted: any, captured: any) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    sendRichMessage: (jid: any, submessages: any, quoted: any, options?: {}) => Promise<{
        message: {
            botForwardedMessage: {
                message: {
                    richResponseMessage: {
                        messageType: number;
                        submessages: any;
                        contextInfo: any;
                    };
                };
            };
        };
        messageId: string;
    }>;
    sendMessage: (jid: any, content: any, options?: {}) => Promise<any>;
    newsletterFetchAllSubscribe: () => Promise<any>;
    newsletterMultipleFollow: (jids: any) => Promise<void>;
    newsletterAction: (jid: any, type: any) => Promise<void>;
    cekIDSaluran: (url: any) => 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: any, description: any) => Promise<{
        id: any;
        owner: any;
        name: any;
        creation_time: number;
        description: any;
        invite: any;
        subscribers: number;
        verification: any;
        picture: {
            id: any;
            directPath: any;
        };
        mute_state: any;
    }>;
    newsletterUpdate: (jid: any, updates: any) => Promise<any>;
    newsletterSubscribers: (jid: any) => Promise<any>;
    newsletterMetadata: (type: any, key: any) => Promise<any>;
    newsletterFollow: (jid: any) => Promise<any>;
    newsletterUnfollow: (jid: any) => Promise<any>;
    newsletterMute: (jid: any) => Promise<any>;
    newsletterUnmute: (jid: any) => Promise<any>;
    newsletterUpdateName: (jid: any, name: any) => Promise<any>;
    newsletterUpdateDescription: (jid: any, description: any) => Promise<any>;
    newsletterUpdatePicture: (jid: any, content: any) => Promise<any>;
    newsletterRemovePicture: (jid: any) => Promise<any>;
    newsletterReactMessage: (jid: any, serverId: any, reaction: any) => Promise<void>;
    newsletterFetchMessages: (jid: any, count: any, since: any, after: any) => Promise<any>;
    subscribeNewsletterUpdates: (jid: any) => Promise<{
        duration: string;
    }>;
    newsletterAdminCount: (jid: any) => Promise<any>;
    newsletterChangeOwner: (jid: any, newOwnerJid: any) => Promise<void>;
    newsletterDemote: (jid: any, userJid: any) => Promise<void>;
    newsletterDelete: (jid: any) => 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("../Types/index.js").WAProto.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("../Types/index.js").WAProto.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>;
};
import { Dugong } from "./dugong.js";
import { MessageRetryManager } from "../Utils/index.js";
import { captureUnifiedResponse } from "../Utils/rich-messages.js";
import { Boom } from "@hapi/boom";
import { USyncQuery } from "../WAUSync/index.js";
