type ModStore = {
    type: string;
    name: string;
    handler: Function;
    whiteList?: number[] | false;
};

type GeneralEventTypes = 'message' | 'request' | 'notice' | 'meta_event';
/**
 * 消息上报子类型
 */
type PostMessageType = 'group' | 'private';
/**
 * https://docs.go-cqhttp.org/reference/data_struct.html#post-notice-type
 */
type PostNoticeType = 'group_upload' | 'group_admin' | 'group_decrease' | 'group_increase' | 'group_ban' | 'friend_add' | 'group_recall' | 'friend_recall' | 'group_card' | 'offline_file' | 'client_status' | 'essence' | 'notify';
type PostRequestType = 'friend' | 'group';

/**
 * 其他客户端在线状态变更
 * https://docs.go-cqhttp.org/event/#%E5%85%B6%E4%BB%96%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%9C%A8%E7%BA%BF%E7%8A%B6%E6%80%81%E5%8F%98%E6%9B%B4
 */
type ClientStatusUpdateType = PostNoticeType & {
    notice_type: 'client_status';
    /**
     * 客户端信息
     */
    client: {
        /**
         * 客户端id
         */
        app_id: number;
        /**
         * 设备名称
         */
        device_name: string;
        /**
         * 设备类型
         */
        device_kind: string;
    };
    online: boolean;
};

type Sex = 'male' | 'female' | 'unknown';
type Role = 'owner' | 'admin' | 'member';
/**
 * 群荣誉类型
 */
type GroupHonorType = 'talkative' | 'performer' | 'legend' | 'strong_newbie' | 'emotion';
/**
 * 匿名消息对象
 */
type Anonymous = {
    id: number;
    name: string;
    flase: string;
};
/**
 * 合并消息转发节点
 */
type ForwardNode = {
    id: number;
    name: string;
    /**
     * 发送者qq
     */
    uin: number;
    content: string;
    seq: string;
};
/**
 * 合并转发消息内容
 */
type ForwardMessage = {
    content: string;
    sender: {
        nickname: string;
        user_id: number;
    };
    time: number;
};
/**
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E6%96%87%E4%BB%B6%E8%B5%84%E6%BA%90%E9%93%BE%E6%8E%A5
 */
type File = {
    group_id: number;
    file_id: string;
    file_name: string;
    busid: number;
    file_size: number;
    upload_time: number;
    dead_time: number;
    modify_time: number;
    download_times: number;
    uploader: number;
    uploader_name: number;
};
type Folder = {
    group_id: number;
    folder_id: string;
    folder_name: string;
    create_time: number;
    creator: number;
    creator_name: string;
    total_file_count: number;
};

declare namespace MessageSender {
    type BaseSender = {
        user_id: number;
        nickname: string;
        sex: Sex;
        age: number;
    };
    export type Friend = BaseSender & {};
    export type Group = BaseSender & {
        card: string;
        area: string;
        level: string;
        role: Role;
        title: string;
    };
    export {};
}

type GeneralPost = {
    /**
     * 事件发生的时间戳
     */
    time: number;
    /**
     * 收到机器人的qq
     */
    self_id: number;
    /**
     * 上报的类型
     */
    post_type: GeneralEventTypes;
};
type GeneralMessagePost = GeneralPost & {
    post_notice: 'message';
    sub_type: string;
    message_id: number;
    user_id: number;
    message: string;
    raw_message: string;
    font: number;
    sender: MessageSender.Friend | MessageSender.Group;
    /**
     * 消息的类型
     */
    message_type: PostMessageType;
};
type GeneralNoticePost = GeneralPost & {
    post_type: 'notice';
    notice_type: PostNoticeType;
};
type GeneralRequestPost = GeneralPost & {
    post_type: 'request';
    request_type: PostRequestType;
};

/**
 * 好友消息撤回
 * https://docs.go-cqhttp.org/event/#%E5%A5%BD%E5%8F%8B%E6%B6%88%E6%81%AF%E6%92%A4%E5%9B%9E
 */
type FriendMessageRecallType = GeneralNoticePost & {
    notice_type: 'friend_recall';
    /**
     * 好友qq
     */
    use_id: number;
    /**
     * 被撤回的消息id
     */
    message_id: number;
};

/**
 * https://docs.go-cqhttp.org/event/#%E5%A5%BD%E5%8F%8B%E6%88%B3%E4%B8%80%E6%88%B3
 * 好友戳一戳
 */
type FriendPokeType = GeneralNoticePost & {
    notice_type: 'notify';
    /**
     * 戳一戳
     */
    sub_type: 'poke';
    /**
     * 发送者qq
     */
    sender_id: number;
    /**
     * 发送者qq
     */
    user_id: number;
    /**
     * 被戳者qq
     */
    target_id: number;
};

/**
 * 群管理员变动
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E7%AE%A1%E7%90%86%E5%91%98%E5%8F%98%E5%8A%A8
 */
type GroupAdminUpdateType = GeneralNoticePost & {
    notice_type: 'group_admin';
    /**
     * 设置 或 取消设置管理员
     */
    sub_type: 'set' | 'unset';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 管理员qq
     */
    user_id: number;
};

/**
 * 群禁言
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E7%A6%81%E8%A8%80
 */
type GroupBanType = GeneralNoticePost & {
    notice_type: 'group_ban';
    /**
     * 禁言、解除禁言
     */
    sub_type: 'ban' | 'lift_ban';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 操作者qq
     */
    operator_id: number;
    /**
     * 被禁言qq
     */
    user_id: number;
    /**
     * 禁言时长 秒
     */
    duration: number;
};

/**
 * 群成员名片更新。仅在收到消息时校验卡片
 * 当名片为空时 card_xx 字段为空字符串, 并不是昵称
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E6%88%90%E5%91%98%E5%90%8D%E7%89%87%E6%9B%B4%E6%96%B0
 */
type GroupCardUpdateType = GeneralNoticePost & {
    notice_type: 'group_card';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 成员id
     */
    user_id: number;
    /**
     * 新名片
     */
    card_new: string;
    /**
     * 旧名片
     */
    card_old: string;
};

/**
 * 群内荣誉等级变更提示
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E6%88%90%E5%91%98%E8%8D%A3%E8%AA%89%E5%8F%98%E6%9B%B4%E6%8F%90%E7%A4%BA
 */
type GroupHonorUpdateType = GeneralNoticePost & {
    notice_type: 'notify';
    sub_type: 'honor';
    user_id: number;
    honor_type: GroupHonorType;
};

/**
 * 群成员减少
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E6%88%90%E5%91%98%E5%87%8F%E5%B0%91
 */
type GroupMemberDecreaseType = GeneralNoticePost & {
    notice_type: 'group_decrease';
    /**
     * 主动退群、成员被踢、自己被踢
     */
    sub_type: 'leave' | 'kick' | 'kick_me';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 操作者qq 如果是主动退群，则和use_id相等
     */
    operator_id: number;
    /**
     * 离开号qq
     */
    user_id: number;
};

/**
 * 群成员增加
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E6%88%90%E5%91%98%E5%A2%9E%E5%8A%A0
 */
type GroupMemberIncreaseType = GeneralNoticePost & {
    notice_type: 'group_increase';
    /**
     * 管理员已同意入群、管理员邀请入群
     */
    sub_type: 'approve' | 'invite';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 操作者qq
     */
    operator_id: number;
    /**
     * 加入者qq
     */
    user_id: number;
};

/**
 * 群消息撤回
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E6%B6%88%E6%81%AF%E6%92%A4%E5%9B%9E
 */
type GroupMessageRecallType = GeneralNoticePost & {
    notice_type: 'group_recall';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 消息发送者QQ
     */
    user_id: number;
    /**
     * 操作人QQ
     */
    operator_id: number;
    /**
     * 被撤回的消息的id
     */
    message_id: number;
};

/**
 * 群内戳一戳
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E5%86%85%E6%88%B3%E4%B8%80%E6%88%B3
 */
type GroupPokeType = GeneralNoticePost & {
    notice_type: 'notify';
    sub_type: 'poke';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 发送者qq
     */
    user_id: number;
    /**
     * 被戳者qq
     */
    target_id: number;
};

/**
 * https://docs.go-cqhttp.org/event/#%E7%BE%A4%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0
 */
type GroupUploadFileType = GeneralNoticePost & {
    notice_type: 'group_upload';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 发送者qq
     */
    user_id: number;
    file: {
        id: string;
        name: string;
        /**
         * 字节数
         */
        size: number;
        /**
         * 暂时不知道有什么用
         */
        busid: number;
    };
};

type ReceiveOfflineFileType = GeneralPost & {
    /**
     * 发送者qq
     */
    user_id: number;
    /**
     * 文件数据
     */
    file: {
        /**
         * 文件名
         */
        name: string;
        /**
         * 文件大小
         */
        size: number;
        /**
         * 下载链接
         */
        url: string;
    };
};

/**
 * 白名单
 * 名字
 */
type BaseWhiteListModType = {
    /**
     * 设置mod的name，便于监控
     */
    name: string;
    whiteList: number[] | false;
};
/**
 * 名字
 */
type BaseModType = {
    name: string;
};

/**
 * 客户端状态信息变更
 */
type ClientStatusUpdateModType = BaseModType & {
    type: 'clientStatusUpdateMod';
    handler: (notice: ClientStatusUpdateType) => void;
};
/**
 * 好友添加
 */
type FriendAddModType = BaseModType & {
    type: 'friendAddMod';
    handler: (notice: ClientStatusUpdateType) => void;
};
/**
 * 好友消息撤回
 */
type FriendMessageRecallModType = BaseWhiteListModType & {
    type: 'friendRecallMod';
    handler: (notice: FriendMessageRecallType) => void;
};
/**
 * 好友戳一戳
 */
type FriendPokeModType = BaseWhiteListModType & {
    type: 'friendPokeMod';
    handler: (notice: FriendPokeType) => void;
};
/**
 * 群管理员变更
 */
type GroupAdminUpdateModType = BaseWhiteListModType & {
    type: 'groupAdminUpdateMod';
    handler: (notice: GroupAdminUpdateType) => void;
};
/**
 * 群禁言
 */
type GroupBanModType = BaseWhiteListModType & {
    type: 'groupBanMod';
    handler: (notice: GroupBanType) => void;
};
/**
 * 群成员卡片更新
 */
type GroupCardUpdateModType = BaseWhiteListModType & {
    type: 'groupCardUpdateMod';
    handler: (notice: GroupCardUpdateType) => void;
};
/**
 * 群精华消息事件
 */
type GroupEssenceModType = BaseWhiteListModType & {
    type: 'groupEssenceMod';
    handler: (notice: GroupEssenceModType) => void;
};
/**
 * 群成员荣誉等级变更
 */
type GroupHonorUpdateModType = BaseWhiteListModType & {
    type: 'groupHonorUpdateMod';
    handler: (notice: GroupHonorUpdateType) => void;
};
/**
 * 群红包幸运王
 */
type GroupLuckyKingModType = BaseWhiteListModType & {
    type: 'groupLuckyKingMod';
    handler: (notice: GroupLuckyKingModType) => void;
};
/**
 * 群成员减少
 */
type GroupMemberDecreaseModType = BaseWhiteListModType & {
    type: 'groupMemberDecreaseMod';
    handler: (notice: GroupMemberDecreaseType) => void;
};
/**
 * 群成员增加
 */
type GroupMemberIncreaseModType = BaseWhiteListModType & {
    type: 'groupMemberIncreaseMod';
    handler: (notice: GroupMemberIncreaseType) => void;
};
/**
 * 群消息撤回
 */
type GroupMessageRecallModType = BaseWhiteListModType & {
    type: 'groupMessageRecallMod';
    handler: (notice: GroupMessageRecallType) => void;
};
/**
 * 群戳一戳
 */
type GroupPokeModType = BaseWhiteListModType & {
    type: 'groupPokeMod';
    handler: (notice: GroupPokeType) => void;
};
/**
 * 群文件上传
 */
type GroupUploadFileModType = BaseWhiteListModType & {
    type: 'groupUploadFileMod';
    handler: (notice: GroupUploadFileType) => void;
};
/**
 * 接受离线消息
 */
type ReceiveOfflineFileModType = BaseWhiteListModType & {
    type: 'receiveOfflineFileMod';
    handler: (notice: ReceiveOfflineFileType) => void;
};

/**
 * https://docs.go-cqhttp.org/api/#%E5%8F%91%E9%80%81%E7%A7%81%E8%81%8A%E6%B6%88%E6%81%AF
 */
type FriendMessageType = GeneralMessagePost & {
    sub_type: 'friend' | 'group' | 'group_self' | 'other';
    /**
     * 临时消息来源
     */
    temp_source: number;
    sender: MessageSender.Friend;
    /**
     * 快速回复
     */
    reply: (replyMessage: string | number, autoEscape?: boolean) => void;
};

/**
 * https://docs.go-cqhttp.org/api/#%E5%8F%91%E9%80%81%E7%BE%A4%E6%B6%88%E6%81%AF
 */
type GroupMessageType = GeneralMessagePost & {
    sub_type: 'normal' | 'anonymous' | 'notice';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 匿名信息
     */
    anonymous: Anonymous | null;
    sender: MessageSender.Group;
    /**
     * 快速回复
     */
    reply: (replyMessage: string | number, isAt?: boolean, isDelete?: boolean, 
    /**
     * 发送者踢出群聊
     */
    isKick?: boolean, ban?: boolean, ban_duration?: number, autoEscape?: boolean) => void;
};

type FriendMessageModType = BaseWhiteListModType & {
    type: 'friendMessageMod';
    handler: (msg: FriendMessageType) => void;
};
type GroupMessageModType = BaseWhiteListModType & {
    type: 'groupMessageMod';
    handler: (msg: GroupMessageType) => void;
};

type index$2_ClientStatusUpdateModType = ClientStatusUpdateModType;
type index$2_FriendAddModType = FriendAddModType;
type index$2_FriendMessageModType = FriendMessageModType;
type index$2_FriendMessageRecallModType = FriendMessageRecallModType;
type index$2_FriendPokeModType = FriendPokeModType;
type index$2_GroupAdminUpdateModType = GroupAdminUpdateModType;
type index$2_GroupBanModType = GroupBanModType;
type index$2_GroupCardUpdateModType = GroupCardUpdateModType;
type index$2_GroupEssenceModType = GroupEssenceModType;
type index$2_GroupHonorUpdateModType = GroupHonorUpdateModType;
type index$2_GroupLuckyKingModType = GroupLuckyKingModType;
type index$2_GroupMemberDecreaseModType = GroupMemberDecreaseModType;
type index$2_GroupMemberIncreaseModType = GroupMemberIncreaseModType;
type index$2_GroupMessageModType = GroupMessageModType;
type index$2_GroupMessageRecallModType = GroupMessageRecallModType;
type index$2_GroupPokeModType = GroupPokeModType;
type index$2_GroupUploadFileModType = GroupUploadFileModType;
type index$2_ReceiveOfflineFileModType = ReceiveOfflineFileModType;
declare namespace index$2 {
  export {
    index$2_ClientStatusUpdateModType as ClientStatusUpdateModType,
    index$2_FriendAddModType as FriendAddModType,
    index$2_FriendMessageModType as FriendMessageModType,
    index$2_FriendMessageRecallModType as FriendMessageRecallModType,
    index$2_FriendPokeModType as FriendPokeModType,
    index$2_GroupAdminUpdateModType as GroupAdminUpdateModType,
    index$2_GroupBanModType as GroupBanModType,
    index$2_GroupCardUpdateModType as GroupCardUpdateModType,
    index$2_GroupEssenceModType as GroupEssenceModType,
    index$2_GroupHonorUpdateModType as GroupHonorUpdateModType,
    index$2_GroupLuckyKingModType as GroupLuckyKingModType,
    index$2_GroupMemberDecreaseModType as GroupMemberDecreaseModType,
    index$2_GroupMemberIncreaseModType as GroupMemberIncreaseModType,
    index$2_GroupMessageModType as GroupMessageModType,
    index$2_GroupMessageRecallModType as GroupMessageRecallModType,
    index$2_GroupPokeModType as GroupPokeModType,
    index$2_GroupUploadFileModType as GroupUploadFileModType,
    index$2_ReceiveOfflineFileModType as ReceiveOfflineFileModType,
  };
}

/**
 * 检查是否可以发送图片
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E8%AF%AD%E9%9F%B3
 */
type CanSendImageApiType = {};
type CanSendImageApiResponseType = {
    yes: boolean;
};

/**
 * 检查是否可以发送语音
 * https://docs.go-cqhttp.org/api/#%E6%A3%80%E6%9F%A5%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%8F%91%E9%80%81%E8%AF%AD%E9%9F%B3
 */
type CanSendRecordApiType = {};
type CanSendRecordApiResponseType = {
    yes: boolean;
};

/**
 * 检查链接安全性
 * https://docs.go-cqhttp.org/api/#%E6%A3%80%E6%9F%A5%E9%93%BE%E6%8E%A5%E5%AE%89%E5%85%A8%E6%80%A7
 */
type CheckUrlSafelyApiType = {
    url: string;
};
type CheckUrlSafelyApiResponseType = {
    level: 1 | 2 | 3;
};

/**
 * 清理缓存
 * https://docs.go-cqhttp.org/api/#%E6%B8%85%E7%90%86%E7%BC%93%E5%AD%98
 */
type CleanCacheApiType = {};
type CleanCacheApiResponseType = {};

type CreateGroupFileFolderApiType = {
    group_id: number;
    name: string;
    /**
     * 仅能设置为 /
     */
    parent_id: string;
};
type CreateGroupFileFolderApiResponseType = {};

/**
 * 移除精华消息
 * https://docs.go-cqhttp.org/api/#%E7%A7%BB%E5%87%BA%E7%B2%BE%E5%8D%8E%E6%B6%88%E6%81%AF
 */
type DeleteEssenceMsgApiType = {
    message_id: number;
};
type DeleteEssenceMsgApiResponseType = {};

/**
 * 删除好友
 *
 * https://docs.go-cqhttp.org/api/#%E5%88%A0%E9%99%A4%E5%A5%BD%E5%8F%8B
 */
type DeleteFriendApiType = {
    friend_id: number;
};
type DeleteFriendApiResponseType = {};

/**
 * 删除群文件
 * https://docs.go-cqhttp.org/api/#%E5%88%A0%E9%99%A4%E7%BE%A4%E6%96%87%E4%BB%B6
 */
type DeleteGroupFileApiType = {
    group_id: number;
    file_id: string;
    busid: number;
};
type DeleteGroupFileApiResponseType = {};

/**
 * 删除群文件文件夹
 * https://docs.go-cqhttp.org/api/#%E5%88%A0%E9%99%A4%E7%BE%A4%E6%96%87%E4%BB%B6%E6%96%87%E4%BB%B6%E5%A4%B9
 */
type DeleteGroupFolderApiType = {
    group_id: number;
    folder_id: string;
};
type DeleteGroupFolderApiResponseType = {};

/**
 * 撤回消息
 * https://docs.go-cqhttp.org/api/#%E6%92%A4%E5%9B%9E%E6%B6%88%E6%81%AF
 */
type DeleteMessageApiType = {
    message_id: number;
};
type DeleteMessageApiReponseType = {};

/**
 * 下载文件到缓存目录
 * https://docs.go-cqhttp.org/api/#%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6%E5%88%B0%E7%BC%93%E5%AD%98%E7%9B%AE%E5%BD%95
 */
type DownLoadFileApiType = {
    url: string;
    thread_count: number;
    /**
     * 格式
     * 1. User-Agent=YOUR_UA[\r\n]Referer=https://www.baidu.com
     *  [\r\n] 为换行符, 使用http请求时请注意编码
     * 2. ["User-Agent=YOUR_UA","Referer=https://www.baidu.com"]
     */
    headers: string | string[];
};
type DownLoadFileApiResponseType = {};

/**
 * 注意： 该Api可能暂未被go-cqhttp支持。
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96-cookies
 */
type GetCookieApiType = {
    /**
     * 需要获取cookie的域名
     */
    domain?: string;
};
type GetCookieApiResponseType = {
    cookies: string;
};

/**
 * 注意： 该Api可能暂未被go-cqhttp支持。
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96-cookies
 */
type GetCredentialsApiType = {
    domain?: string;
};
type GetCredentialsResponseApiType = {
    cookies: string;
    csrf_token: number;
};

/**
 * 注意： 该Api可能暂未被go-cqhttp支持。
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96-cookies
 */
type GetCSRFTokenApiType = {};
type GetCSRFTokenApiResponseType = {
    token?: string;
};

/**
 * 获取精华消息列表
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%B2%BE%E5%8D%8E%E6%B6%88%E6%81%AF%E5%88%97%E8%A1%A8
 */
type GetEssenceMsgListApiType = {
    group_id: number;
};
type GetEssenceMsgListApiResponseType = {
    sender_id: number;
    sender_nick: string;
    sender_time: number;
    operator_id: number;
    operator_nick: string;
    operator_time: number;
    message_id: number;
}[];

/**
 * 获取合并转发内容
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E5%90%88%E5%B9%B6%E8%BD%AC%E5%8F%91%E5%86%85%E5%AE%B9
 */
type GetForwardMessageApiType = {
    message_id: number;
};
type GetForwardMessageApiResponseType = {
    messages: ForwardMessage[];
};

/**
 * 获取好友列表
 *
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E5%A5%BD%E5%8F%8B%E5%88%97%E8%A1%A8
 */
type GetFriendListApiType = {};
type GetFriendListApiResponseType = {
    user_id: number;
    nickname: string;
    /**
     * 备注名字
     */
    remark: string;
}[];

/**
 * 获取群@ 全体成员剩余次数
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4-%E5%85%A8%E4%BD%93%E6%88%90%E5%91%98-%E5%89%A9%E4%BD%99%E6%AC%A1%E6%95%B0
 */
type GetGroupAtAllRemainApiType = {
    group_id: number;
};
type GetGroupAtAllRemainApiResponseType = {
    can_at_all: boolean;
    remain_at_all_count_for_group: number;
    remain_at_all_count_for_uni: number;
};

/**
 * 获取群子目录文件列表
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%AD%90%E7%9B%AE%E5%BD%95%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8
 */
type GetGroupFilesByFolderApiType = {
    group_id: number;
};
type GetGroupFilesByFolderApiResponseType = {
    files: File[];
    folders: Folder[];
};

/**
 * 获取群文件系统信息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E4%BF%A1%E6%81%AF
 */
type GetGroupFileSystemInfoApiType = {
    group_id: number;
};
type GetGroupFileSystemInfoApiResponseType = {
    file_count: number;
    limit_count: number;
    used_space: number;
    total_space: number;
};

/**
 * 获取群文件资源链接
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E6%96%87%E4%BB%B6%E8%B5%84%E6%BA%90%E9%93%BE%E6%8E%A5
 */
type GetGroupFileUrlApiType = {
    group_id: number;
    file_id: string;
    busid: number;
};
type GetGroupFileUrlApiResponseType = {
    url: string;
};

type talkativeObj = {
    user_id: number;
    nickname: string;
    avatar: string;
    day_count: number;
};
type listObj = {
    user_id: number;
    nickname: string;
    avatar: string;
    description: string;
};
/**
 * 获取群荣誉信息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E8%8D%A3%E8%AA%89%E4%BF%A1%E6%81%AF
 */
type GetGroupHonorInfoApiType = {
    group_id: number;
    type: GroupHonorType | 'all';
};
type GetGroupHonorInfoApiResponseType = {
    group_id: number;
    current_talkative: talkativeObj;
    talkative_list: listObj[];
    performer_list: listObj[];
    legend_list: listObj[];
    strong_newbie_list: listObj[];
    emotion_list: listObj[];
};

/**
 * 获取群信息
 *
 * 这里提供了一个API用于获取群图片, group_id 为群号 https://p.qlogo.cn/gh/{group_id}/{group_id}/100
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E4%BF%A1%E6%81%AF
 */
type GetGroupInfoApiType = {
    group_id: number;
    /**
     * 默认不使用缓存。使用缓存可能更新不及时，但是响应更快
     */
    no_cache?: boolean;
};
/**
 * 如果机器人尚未加入群, group_create_time, group_level, max_member_count 和 member_count 将会为0
 */
type GetGroupInfoApiResponseType = {
    group_id: number;
    group_name: string;
    group_memo: string;
    group_create_time: number;
    group_level: string;
    member_count: number;
    max_member_count: number;
};

/**
 * 获取群列表
 *
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%88%97%E8%A1%A8
 */
type GetGroupListApiType = {};
type GetGroupListApiResponseType = {
    group_id: number;
    group_name: string;
    group_memo: string;
    group_create_time: number;
    group_level: string;
    member_count: number;
    max_member_count: number;
}[];

/**
 * 获取群成员信息
 *
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E6%88%90%E5%91%98%E4%BF%A1%E6%81%AF
 */
type GetGroupMemberInfoApiType = {
    group_id: number;
    user_id: number;
    /**
     * 是否不使用缓存（使用缓存可能更新不及时, 但响应更快）
     */
    no_cache?: boolean;
};
type GetGroupMemberInfoApiResponseType = {
    group_id: number;
    user_id: number;
    nickname: string;
    card: string;
    sex: Sex;
    age: number;
    area: string;
    join_time: number;
    last_sent_time: number;
    level: string;
    role: Role;
    /**
     * 是否不良记录成员
     */
    unfriendly: boolean;
    /**
     * 专属头衔
     */
    title: string;
    title_expire_time: number;
    card_changeable: boolean;
    shut_up_timestamp: number;
};

/**
 * 获取群成员列表
 */
type GetGroupMemberListApiType = {
    group_id: number;
};
type GetGroupMemberListApiResponseType = {
    group_id: number;
    user_id: number;
    nickname: string;
    card: string;
    sex: Sex;
    age: number;
    area: string;
    join_time: number;
    last_sent_time: number;
    level: string;
    role: Role;
    /**
     * 是否不良记录成员
     */
    unfriendly: boolean;
    /**
     * 专属头衔
     */
    title: string;
    title_expire_time: number;
    card_changeable: boolean;
    shut_up_timestamp: number;
}[];

/**
 * 获取群历史消息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E6%B6%88%E6%81%AF%E5%8E%86%E5%8F%B2%E8%AE%B0%E5%BD%95
 */
type GetGroupMsgHistoryApiType = {
    message_seq: number;
    group_id: number;
};
type GetGroupMsgHistoryApiResponseType = {
    message: string[];
};

/**
 * 获取群公告
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%85%AC%E5%91%8A
 */
type GetGroupNoticeApiType = {
    group_id: number;
};
type GetGroupNoticeApiResponseType = {
    sender_id: number;
    publish_time: number;
    message: {
        text: string;
        images: {
            height: string;
            width: string;
            id: string;
        }[];
    };
};

/**
 * 获取群根目录文件列表
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E6%A0%B9%E7%9B%AE%E5%BD%95%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8
 */
type GetGroupRootFilesApiType = {
    group_id: number;
};
type GetGroupRootFilesApiResponseType = {
    files: File[];
    folders: Folder[];
};

type InvitedRequest = {
    /**
     * 请求id
     */
    request_id: number;
    /**
     * 邀请者
     */
    invitor_uin: number;
    /**
     * 邀请者昵称
     */
    invitor_nick: string;
    group_id: number;
    group_name: string;
    /**
     * 是否已经被处理
     */
    checked: boolean;
    /**
     * 处理者  未处理为0
     */
    actor: number;
};
type JoinRequest = {
    /**
     * 请求id
     */
    request_id: number;
    /**
     * 邀请者
     */
    invitor_uin: number;
    /**
     * 邀请者昵称
     */
    invitor_nick: string;
    group_id: number;
    group_name: string;
    /**
     * 是否已经被处理
     */
    checked: boolean;
    /**
     * 处理者  未处理为0
     */
    actor: number;
};
/**
 * 获取群系统消息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%BE%A4%E7%B3%BB%E7%BB%9F%E6%B6%88%E6%81%AF
 */
type GetGroupSystemMsgApiType = {};
type GetGroupSystemMsgApiResponseType = {
    invited_requests: InvitedRequest[];
    join_requests: JoinRequest[];
} | null;

/**
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E5%9B%BE%E7%89%87%E4%BF%A1%E6%81%AF
 */
type GetImageApiType = {
    /**
     * 图片缓存文件名
     */
    file: string;
};
type GetImageApiResponseType = {
    size: number;
    filename: string;
    url: string;
};

/**
 * 获取登录号信息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%99%BB%E5%BD%95%E5%8F%B7%E4%BF%A1%E6%81%AF
 */
type GetLoginInfoApiType = {};
type GetLoginInfoApiResponseType = {
    user_id: number;
    nickname: string;
};

/**
 * 获取消息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E6%B6%88%E6%81%AF
 */
type GetMessageApiType = {
    message_id: number;
};
type GetMessageApiResponseType = {
    message_id: number;
    real_id: number;
    sender: MessageSender.Friend | MessageSender.Group;
    time: number;
    message: string;
    raw_message: string;
};

/**
 * 获取在线机型
 * 使用例子https://github.com/Mrs4s/go-cqhttp/pull/872#issuecomment-831180149
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E5%9C%A8%E7%BA%BF%E6%9C%BA%E5%9E%8B
 */
type GetModelShowApiType = {
    model: string;
};
type GetModelShowApiResponseType = {
    model_show: string;
    need_pay: boolean;
}[];

/**
 * 获取当前账号在线客户端列表
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E5%BD%93%E5%89%8D%E8%B4%A6%E5%8F%B7%E5%9C%A8%E7%BA%BF%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%88%97%E8%A1%A8
 */
type GetOnlineClientsApiType = {
    no_cache: boolean;
};
type GetOnlineClientsApiResponseType = {
    clients: {
        app_id: number;
        device_name: string;
        device_kink: string;
    }[];
};

/**
 * 注意，该api可能暂未被go-cqhttp支持。
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E8%AF%AD%E9%9F%B3
 */
type GetRecordApiType = {
    file: string;
    out_format: 'mp3' | 'amr' | 'wma' | 'm4a' | 'spx' | 'ogg' | 'wav' | 'flac';
};
type GetRecordApiResponseType = {
    file: string;
};

type GetStatusApiType = {};
/**
 * 获取状态
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%8A%B6%E6%80%81
 */
type GetStatusApiResponseType = {
    app_initialized: boolean;
    app_enabled: boolean;
    plugins_good: boolean;
    app_good: boolean;
    online: boolean;
    good: boolean;
    stat: {
        PacketReceived: number;
        PacketSent: number;
        PacketLost: number;
        MessageReceived: number;
        MessageSent: number;
        DisconnectTimes: number;
        LostTimes: number;
        LastMessageTime: number;
    };
};

/**
 * 获取陌生人信息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E9%99%8C%E7%94%9F%E4%BA%BA%E4%BF%A1%E6%81%AF
 */
type GetStrangerInfoApiType = {
    user_id: number;
    no_cache?: boolean;
};
type GetStrangerInfoApiResponseType = {
    user_id: number;
    nickname: string;
    sex: Sex;
    age: number;
    qid: string;
    level: number;
    login_days: number;
};

/**
 * 获取单项好友列表
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E5%8D%95%E5%90%91%E5%A5%BD%E5%8F%8B%E5%88%97%E8%A1%A8
 */
type GetUnidirectionalFriendListApiType = {};
type GetUnidirectionalFriendListApiResponseType = {
    user_id: number;
    nickname: string;
    source: string;
}[];

/**
 * 获取版本信息
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E7%89%88%E6%9C%AC%E4%BF%A1%E6%81%AF
 */
type GetVersionInfoApiType = {};
type GetVersionInfoApiResponseType = {
    /**
     * 应用标识, 如 go-cqhttp 固定值
     * 默认 go-cqhttp
     */
    app_name: string;
    /**
     * 应用版本
     */
    app_version: string;
    app_full_name: string;
    /**
     * OneBot标准版本
     * 默认值v11
     */
    protocol_version: string;
    coolq_edition: string;
    coolq_directory: string;
    'go-cqhttp': boolean;
    plugin_version: string;
    plugin_build_number: number;
    runtime_version: string;
    runtime_os: string;
    version: string;
    protocol: number;
};

/**
 * 标记消息为已读状态
 * https://docs.go-cqhttp.org/api/#%E6%A0%87%E8%AE%B0%E6%B6%88%E6%81%AF%E5%B7%B2%E8%AF%BB
 */
type MarkMsgAsReadApiType = {
    message_id: number;
};
type MarkMsgAsReadApiResponseType = {};

/**
 * 图片OCR
 * https://docs.go-cqhttp.org/api/#%E8%8E%B7%E5%8F%96%E4%B8%AD%E6%96%87%E5%88%86%E8%AF%8D-%E9%9A%90%E8%97%8F-api
 */
type OcrImageApiType = {
    image: string;
};
type OcrImageApiResponseType = {
    textx: {
        text: string;
        confidence: number;
        /**
         * 坐标
         */
        coordinates: any;
    }[];
};

/**
 * 重载事件过滤器
 * https://docs.go-cqhttp.org/api/#%E9%87%8D%E8%BD%BD%E4%BA%8B%E4%BB%B6%E8%BF%87%E6%BB%A4%E5%99%A8
 */
type ReloadEventFilterApiType = {
    file: string;
};
type ReloadEventFilterApiResponseType = {};

/**
 * https://docs.go-cqhttp.org/api/#%E5%8F%91%E9%80%81%E5%90%88%E5%B9%B6%E8%BD%AC%E5%8F%91-%E7%BE%A4
 */
type SendGroupForwardMessageApiType = {
    group_id: number;
    message: ForwardNode[];
};
type SendGroupForwardMessageApiResponseType = {};

/**
 * 发送群消息
 * https://docs.go-cqhttp.org/api/#%E5%8F%91%E9%80%81%E7%BE%A4%E6%B6%88%E6%81%AF
 */
type SendGroupMessageApiType = {
    group_id: number;
    message: string;
    auto_escape?: boolean;
};
type SendGroupMessageApiResponseType = {
    message_id: number;
};

type SendGroupNoticeApiType = {
    group_id: number;
    content: string;
    image?: string;
};
type SendGroupNoticeApiResponseType = {};

/**
 * 群打卡
 * https://docs.go-cqhttp.org/api/#%E7%BE%A4%E6%89%93%E5%8D%A1
 */
type SendGroupSignApiType = {
    group_id: number;
};
type SendGroupSignApiResponseType = {};

/**
 * 发送消息
 * https://docs.go-cqhttp.org/api/#%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF
 */
type SendMessageApiType = {
    /**
     * 消息类型, 支持 private、group , 分别对应私聊、群组, 如不传入, 则根据传入的 *_id 参数判断
     */
    message_type?: 'private' | 'group ';
    /**
     * 对方 QQ 号 ( 消息类型为 private 时需要 )
     */
    user_id?: number;
    /**
     * 群号 ( 消息类型为 group 时需要 )
     */
    group_id: number;
    message: string;
    auto_escape?: boolean;
};
type SendMessageApiResponseType = {
    message_id: number;
};

type SendObjType = {
    action: string;
    params: Record<string, string>;
    echo?: string;
};

/**
 * https://docs.go-cqhttp.org/api/#%E5%8F%91%E9%80%81%E7%A7%81%E8%81%8A%E6%B6%88%E6%81%AF
 */
type SendPrivateMessageApiType = {
    user_id: number;
    message: string;
    group_id?: number;
    auto_escape?: boolean;
};
type SendPrivateMessageApiResponseType = {
    message_id: number;
};

/**
 * 设置精华消息
 * https://docs.go-cqhttp.org/api/#%E8%AE%BE%E7%BD%AE%E7%B2%BE%E5%8D%8E%E6%B6%88%E6%81%AF
 */
type SetEssenceMsgApiType = {
    message_id: number;
};
type SetEssenceMsgApiResponseType = {};

/**
 * 处理加好友请求
 * https://docs.go-cqhttp.org/api/#%E5%A4%84%E7%90%86%E5%8A%A0%E5%A5%BD%E5%8F%8B%E8%AF%B7%E6%B1%82
 */
type SetFriendAddRequestApiType = {
    flag: string;
    /**
     * 默认为同意 true
     */
    approve?: boolean;
    /**
     * 添加好友后的备注
     */
    remark: string;
};
type SetFriendAddRequestApiResponseType = {};

/**
 * https://docs.go-cqhttp.org/api/#%E5%A4%84%E7%90%86%E5%8A%A0%E7%BE%A4%E8%AF%B7%E6%B1%82-%E9%82%80%E8%AF%B7
 */
type SetGroupAddRequestApiType = {
    flag: string;
    /**
     * 需要和sub_type字段相符
     */
    sub_type: 'add' | 'invite';
    /**
     * 默认为同意请求 true
     */
    approve?: boolean;
    /**
     * 拒绝理由
     */
    reason?: string;
};
type SetGroupAddRequestApiResponseType = {};

/**
 * 群组设置管理员
 * https://docs.go-cqhttp.org/api/#%E7%BE%A4%E7%BB%84%E8%AE%BE%E7%BD%AE%E7%AE%A1%E7%90%86%E5%91%98
 */
type SetGroupAdminApiType = {
    group_ip: number;
    user_id: number;
    /**
     * true为设置，false为取消
     */
    enable?: boolean;
};
type SetGroupAdminApiResponseType = {};

/**
 * 注意：这个可能没有被go-cqhttp支持，请进入下列网址中查看是否支持。
 * https://docs.go-cqhttp.org/api/#%E7%BE%A4%E7%BB%84%E5%8C%BF%E5%90%8D
 */
type SetGroupAnonymousApiType = {
    group_id: number;
    /**
     * 是否允许匿名聊天
     */
    enable?: boolean;
};
type SetGroupAnonymousApiResponseType = {};

/**
 * 群组匿名用户禁言
 * anonymous 和 anonymous_flag 两者任选其一传入即可, 若都传入, 则使用 anonymous。
 * https://docs.go-cqhttp.org/api/#%E7%BE%A4%E7%BB%84%E5%8C%BF%E5%90%8D%E7%94%A8%E6%88%B7%E7%A6%81%E8%A8%80
 */
type SetGroupAnonymousBanApiType = {
    group_id: number;
    /**
     *
     */
    anonymous?: Anonymous;
    /**
     * 从群消息上报的数据中获得
     */
    anonymous_flag?: string;
    /**
     * 默认30*60秒，无法取消匿名用户禁言
     */
    duration: number;
};
type SetGroupAnonymousBanApiResponseType = {};

/**
 * 群组踢人
 * https://docs.go-cqhttp.org/api/#%E7%BE%A4%E7%BB%84%E8%B8%A2%E4%BA%BA
 */
type SetGroupBanApiType = {
    group_id: number;
    user_id: number;
    /**
     * 默认30*60秒, 0表示取消经验
     */
    duration: number;
};
type SetGroupBanApiResponseType = {};

/**
 * 设置群备注
 */
type SetGroupCardApiType = {
    group_id: number;
    user_id: number;
    /**
     * 不填或者空字符串表示删除群名片
     */
    card?: string;
};
type SetGroupCardApiResponseType = {};

/**
 * 群组踢人
 * https://docs.go-cqhttp.org/api/#%E7%BE%A4%E7%BB%84%E8%B8%A2%E4%BA%BA
 */
type SetGroupKickApiType = {
    group_id: number;
    user_id: number;
    reject_add_request?: boolean;
};
type SetGroupKickApiResponseType = {};

/**
 * 退出群组
 * https://docs.go-cqhttp.org/api/#%E9%80%80%E5%87%BA%E7%BE%A4%E7%BB%84
 */
type SetGroupLeaveApiType = {
    group_id: number;
    /**
     * 是否解散。如果登录号是群主，则仅在此项为true是解散
     */
    is_dismiss?: boolean;
};
type SetGroupLeaveApiResponseType = {};

/**
 * 设置群名
 *https://docs.go-cqhttp.org/api/#%E8%AE%BE%E7%BD%AE%E7%BE%A4%E5%90%8D
 */
type SetGroupNameApiType = {
    group_id: number;
    group_name: string;
};
type SetGroupNameApiResponseType = {};

/**
 * 设置群头像
 * file的规则 请https://docs.go-cqhttp.org/api/#%E6%B8%85%E7%90%86%E7%BC%93%E5%AD%98
 */
type SetGroupPortraitApiType = {
    group_id: number;
    file: string;
    /**
     * 表示是否使用已经缓存的文件
     */
    cache: number;
};
type SetGroupPortraitApiResponseType = {};

/**
 * 设置群组专属头衔
 * https://docs.go-cqhttp.org/api/#%E8%AE%BE%E7%BD%AE%E7%BE%A4%E7%BB%84%E4%B8%93%E5%B1%9E%E5%A4%B4%E8%A1%94
 */
type SetGroupSpecialTitleApiType = {
    group_id: number;
    user_id: number;
    /**
     * 不填或者空字符串表示删除
     */
    special_title?: string;
    /**
     * 专属头衔有效期, 单位秒, -1 表示永久, 不过此项似乎没有效果, 可能是只有某些特殊的时间长度有效, 有待测试
     */
    duration?: number;
};
type SetGroupSpecialTitleApiResponseType = {};

/**
 * 群组全员禁言
 * https://docs.go-cqhttp.org/api/#%E7%BE%A4%E7%BB%84%E5%85%A8%E5%91%98%E7%A6%81%E8%A8%80
 */
type SetGroupWholeBanApiType = {
    group_id: number;
    /**
     * 默认 禁言
     */
    enable?: boolean;
};
type SetGroupWholeBanApiResponseType = {};

/**
 * 设置在线机型
 * 使用例子https://github.com/Mrs4s/go-cqhttp/pull/872#issuecomment-831180149
 * https://docs.go-cqhttp.org/api/#%E8%AE%BE%E7%BD%AE%E5%9C%A8%E7%BA%BF%E6%9C%BA%E5%9E%8B
 */
type SetModelShowApiType = {
    model: string;
    model_show: string;
};
type SetModelShowApiResponseType = {};

/**
 * 设置登录号信息
 * https://docs.go-cqhttp.org/api/#%E8%AE%BE%E7%BD%AE%E7%99%BB%E5%BD%95%E5%8F%B7%E8%B5%84%E6%96%99
 */
type SetQQProfileType = {
    nickname: string;
    company: string;
    email: string;
    collega: string;
    personal_note: string;
};

/**
 * 重启go-cqhttp
 * 由于重启 go-cqhttp 实现同时需要重启 API 服务, 这意味着当前的 API 请求会被中断, 因此需要异步地重启, 接口返回的 status 是 async。
 */
type SetRestartApiType = {
    /**
     * 要延迟的毫秒数, 如果默认情况下无法重启, 可以尝试设置延迟为 2000 左右
     */
    delay: number;
};
type SetRestartApiResponseType = {};

/**
 * 上传群文件
 * https://docs.go-cqhttp.org/api/#%E4%B8%8A%E4%BC%A0%E7%BE%A4%E6%96%87%E4%BB%B6
 */
type UploadGroupFileApiType = {
    group_id: number;
    file: string;
    name: string;
    folder: string;
};
type UploadGroupFileApiResponseType = {};

/**
 * 上传私聊文件
 */
type UploadPrivateFileApiType = {
    user_id: number;
    file: string;
    name: string;
};
type UploadPrivateFileApiResponseType = {};

type index$1_CanSendImageApiResponseType = CanSendImageApiResponseType;
type index$1_CanSendImageApiType = CanSendImageApiType;
type index$1_CanSendRecordApiResponseType = CanSendRecordApiResponseType;
type index$1_CanSendRecordApiType = CanSendRecordApiType;
type index$1_CheckUrlSafelyApiResponseType = CheckUrlSafelyApiResponseType;
type index$1_CheckUrlSafelyApiType = CheckUrlSafelyApiType;
type index$1_CleanCacheApiResponseType = CleanCacheApiResponseType;
type index$1_CleanCacheApiType = CleanCacheApiType;
type index$1_CreateGroupFileFolderApiResponseType = CreateGroupFileFolderApiResponseType;
type index$1_CreateGroupFileFolderApiType = CreateGroupFileFolderApiType;
type index$1_DeleteEssenceMsgApiResponseType = DeleteEssenceMsgApiResponseType;
type index$1_DeleteEssenceMsgApiType = DeleteEssenceMsgApiType;
type index$1_DeleteFriendApiResponseType = DeleteFriendApiResponseType;
type index$1_DeleteFriendApiType = DeleteFriendApiType;
type index$1_DeleteGroupFileApiResponseType = DeleteGroupFileApiResponseType;
type index$1_DeleteGroupFileApiType = DeleteGroupFileApiType;
type index$1_DeleteGroupFolderApiResponseType = DeleteGroupFolderApiResponseType;
type index$1_DeleteGroupFolderApiType = DeleteGroupFolderApiType;
type index$1_DeleteMessageApiReponseType = DeleteMessageApiReponseType;
type index$1_DeleteMessageApiType = DeleteMessageApiType;
type index$1_DownLoadFileApiResponseType = DownLoadFileApiResponseType;
type index$1_DownLoadFileApiType = DownLoadFileApiType;
type index$1_GetCSRFTokenApiResponseType = GetCSRFTokenApiResponseType;
type index$1_GetCSRFTokenApiType = GetCSRFTokenApiType;
type index$1_GetCookieApiResponseType = GetCookieApiResponseType;
type index$1_GetCookieApiType = GetCookieApiType;
type index$1_GetCredentialsApiType = GetCredentialsApiType;
type index$1_GetCredentialsResponseApiType = GetCredentialsResponseApiType;
type index$1_GetEssenceMsgListApiResponseType = GetEssenceMsgListApiResponseType;
type index$1_GetEssenceMsgListApiType = GetEssenceMsgListApiType;
type index$1_GetForwardMessageApiResponseType = GetForwardMessageApiResponseType;
type index$1_GetForwardMessageApiType = GetForwardMessageApiType;
type index$1_GetFriendListApiResponseType = GetFriendListApiResponseType;
type index$1_GetFriendListApiType = GetFriendListApiType;
type index$1_GetGroupAtAllRemainApiResponseType = GetGroupAtAllRemainApiResponseType;
type index$1_GetGroupAtAllRemainApiType = GetGroupAtAllRemainApiType;
type index$1_GetGroupFileSystemInfoApiResponseType = GetGroupFileSystemInfoApiResponseType;
type index$1_GetGroupFileSystemInfoApiType = GetGroupFileSystemInfoApiType;
type index$1_GetGroupFileUrlApiResponseType = GetGroupFileUrlApiResponseType;
type index$1_GetGroupFileUrlApiType = GetGroupFileUrlApiType;
type index$1_GetGroupFilesByFolderApiResponseType = GetGroupFilesByFolderApiResponseType;
type index$1_GetGroupFilesByFolderApiType = GetGroupFilesByFolderApiType;
type index$1_GetGroupHonorInfoApiResponseType = GetGroupHonorInfoApiResponseType;
type index$1_GetGroupHonorInfoApiType = GetGroupHonorInfoApiType;
type index$1_GetGroupInfoApiResponseType = GetGroupInfoApiResponseType;
type index$1_GetGroupInfoApiType = GetGroupInfoApiType;
type index$1_GetGroupListApiResponseType = GetGroupListApiResponseType;
type index$1_GetGroupListApiType = GetGroupListApiType;
type index$1_GetGroupMemberInfoApiResponseType = GetGroupMemberInfoApiResponseType;
type index$1_GetGroupMemberInfoApiType = GetGroupMemberInfoApiType;
type index$1_GetGroupMemberListApiResponseType = GetGroupMemberListApiResponseType;
type index$1_GetGroupMemberListApiType = GetGroupMemberListApiType;
type index$1_GetGroupMsgHistoryApiResponseType = GetGroupMsgHistoryApiResponseType;
type index$1_GetGroupMsgHistoryApiType = GetGroupMsgHistoryApiType;
type index$1_GetGroupNoticeApiResponseType = GetGroupNoticeApiResponseType;
type index$1_GetGroupNoticeApiType = GetGroupNoticeApiType;
type index$1_GetGroupRootFilesApiResponseType = GetGroupRootFilesApiResponseType;
type index$1_GetGroupRootFilesApiType = GetGroupRootFilesApiType;
type index$1_GetGroupSystemMsgApiResponseType = GetGroupSystemMsgApiResponseType;
type index$1_GetGroupSystemMsgApiType = GetGroupSystemMsgApiType;
type index$1_GetImageApiResponseType = GetImageApiResponseType;
type index$1_GetImageApiType = GetImageApiType;
type index$1_GetLoginInfoApiResponseType = GetLoginInfoApiResponseType;
type index$1_GetLoginInfoApiType = GetLoginInfoApiType;
type index$1_GetMessageApiResponseType = GetMessageApiResponseType;
type index$1_GetMessageApiType = GetMessageApiType;
type index$1_GetModelShowApiResponseType = GetModelShowApiResponseType;
type index$1_GetModelShowApiType = GetModelShowApiType;
type index$1_GetOnlineClientsApiResponseType = GetOnlineClientsApiResponseType;
type index$1_GetOnlineClientsApiType = GetOnlineClientsApiType;
type index$1_GetRecordApiResponseType = GetRecordApiResponseType;
type index$1_GetRecordApiType = GetRecordApiType;
type index$1_GetStatusApiResponseType = GetStatusApiResponseType;
type index$1_GetStatusApiType = GetStatusApiType;
type index$1_GetStrangerInfoApiResponseType = GetStrangerInfoApiResponseType;
type index$1_GetStrangerInfoApiType = GetStrangerInfoApiType;
type index$1_GetUnidirectionalFriendListApiResponseType = GetUnidirectionalFriendListApiResponseType;
type index$1_GetUnidirectionalFriendListApiType = GetUnidirectionalFriendListApiType;
type index$1_GetVersionInfoApiResponseType = GetVersionInfoApiResponseType;
type index$1_GetVersionInfoApiType = GetVersionInfoApiType;
type index$1_MarkMsgAsReadApiResponseType = MarkMsgAsReadApiResponseType;
type index$1_MarkMsgAsReadApiType = MarkMsgAsReadApiType;
type index$1_OcrImageApiResponseType = OcrImageApiResponseType;
type index$1_OcrImageApiType = OcrImageApiType;
type index$1_ReloadEventFilterApiResponseType = ReloadEventFilterApiResponseType;
type index$1_ReloadEventFilterApiType = ReloadEventFilterApiType;
type index$1_SendGroupForwardMessageApiResponseType = SendGroupForwardMessageApiResponseType;
type index$1_SendGroupForwardMessageApiType = SendGroupForwardMessageApiType;
type index$1_SendGroupMessageApiResponseType = SendGroupMessageApiResponseType;
type index$1_SendGroupMessageApiType = SendGroupMessageApiType;
type index$1_SendGroupNoticeApiResponseType = SendGroupNoticeApiResponseType;
type index$1_SendGroupNoticeApiType = SendGroupNoticeApiType;
type index$1_SendGroupSignApiResponseType = SendGroupSignApiResponseType;
type index$1_SendGroupSignApiType = SendGroupSignApiType;
type index$1_SendMessageApiResponseType = SendMessageApiResponseType;
type index$1_SendMessageApiType = SendMessageApiType;
type index$1_SendObjType = SendObjType;
type index$1_SendPrivateMessageApiResponseType = SendPrivateMessageApiResponseType;
type index$1_SendPrivateMessageApiType = SendPrivateMessageApiType;
type index$1_SetEssenceMsgApiResponseType = SetEssenceMsgApiResponseType;
type index$1_SetEssenceMsgApiType = SetEssenceMsgApiType;
type index$1_SetFriendAddRequestApiResponseType = SetFriendAddRequestApiResponseType;
type index$1_SetFriendAddRequestApiType = SetFriendAddRequestApiType;
type index$1_SetGroupAddRequestApiResponseType = SetGroupAddRequestApiResponseType;
type index$1_SetGroupAddRequestApiType = SetGroupAddRequestApiType;
type index$1_SetGroupAdminApiResponseType = SetGroupAdminApiResponseType;
type index$1_SetGroupAdminApiType = SetGroupAdminApiType;
type index$1_SetGroupAnonymousApiResponseType = SetGroupAnonymousApiResponseType;
type index$1_SetGroupAnonymousApiType = SetGroupAnonymousApiType;
type index$1_SetGroupAnonymousBanApiResponseType = SetGroupAnonymousBanApiResponseType;
type index$1_SetGroupAnonymousBanApiType = SetGroupAnonymousBanApiType;
type index$1_SetGroupBanApiResponseType = SetGroupBanApiResponseType;
type index$1_SetGroupBanApiType = SetGroupBanApiType;
type index$1_SetGroupCardApiResponseType = SetGroupCardApiResponseType;
type index$1_SetGroupCardApiType = SetGroupCardApiType;
type index$1_SetGroupKickApiResponseType = SetGroupKickApiResponseType;
type index$1_SetGroupKickApiType = SetGroupKickApiType;
type index$1_SetGroupLeaveApiResponseType = SetGroupLeaveApiResponseType;
type index$1_SetGroupLeaveApiType = SetGroupLeaveApiType;
type index$1_SetGroupNameApiResponseType = SetGroupNameApiResponseType;
type index$1_SetGroupNameApiType = SetGroupNameApiType;
type index$1_SetGroupPortraitApiResponseType = SetGroupPortraitApiResponseType;
type index$1_SetGroupPortraitApiType = SetGroupPortraitApiType;
type index$1_SetGroupSpecialTitleApiResponseType = SetGroupSpecialTitleApiResponseType;
type index$1_SetGroupSpecialTitleApiType = SetGroupSpecialTitleApiType;
type index$1_SetGroupWholeBanApiResponseType = SetGroupWholeBanApiResponseType;
type index$1_SetGroupWholeBanApiType = SetGroupWholeBanApiType;
type index$1_SetModelShowApiResponseType = SetModelShowApiResponseType;
type index$1_SetModelShowApiType = SetModelShowApiType;
type index$1_SetQQProfileType = SetQQProfileType;
type index$1_SetRestartApiResponseType = SetRestartApiResponseType;
type index$1_SetRestartApiType = SetRestartApiType;
type index$1_UploadGroupFileApiResponseType = UploadGroupFileApiResponseType;
type index$1_UploadGroupFileApiType = UploadGroupFileApiType;
type index$1_UploadPrivateFileApiResponseType = UploadPrivateFileApiResponseType;
type index$1_UploadPrivateFileApiType = UploadPrivateFileApiType;
declare namespace index$1 {
  export {
    index$1_CanSendImageApiResponseType as CanSendImageApiResponseType,
    index$1_CanSendImageApiType as CanSendImageApiType,
    index$1_CanSendRecordApiResponseType as CanSendRecordApiResponseType,
    index$1_CanSendRecordApiType as CanSendRecordApiType,
    index$1_CheckUrlSafelyApiResponseType as CheckUrlSafelyApiResponseType,
    index$1_CheckUrlSafelyApiType as CheckUrlSafelyApiType,
    index$1_CleanCacheApiResponseType as CleanCacheApiResponseType,
    index$1_CleanCacheApiType as CleanCacheApiType,
    index$1_CreateGroupFileFolderApiResponseType as CreateGroupFileFolderApiResponseType,
    index$1_CreateGroupFileFolderApiType as CreateGroupFileFolderApiType,
    index$1_DeleteEssenceMsgApiResponseType as DeleteEssenceMsgApiResponseType,
    index$1_DeleteEssenceMsgApiType as DeleteEssenceMsgApiType,
    index$1_DeleteFriendApiResponseType as DeleteFriendApiResponseType,
    index$1_DeleteFriendApiType as DeleteFriendApiType,
    index$1_DeleteGroupFileApiResponseType as DeleteGroupFileApiResponseType,
    index$1_DeleteGroupFileApiType as DeleteGroupFileApiType,
    index$1_DeleteGroupFolderApiResponseType as DeleteGroupFolderApiResponseType,
    index$1_DeleteGroupFolderApiType as DeleteGroupFolderApiType,
    index$1_DeleteMessageApiReponseType as DeleteMessageApiReponseType,
    index$1_DeleteMessageApiType as DeleteMessageApiType,
    index$1_DownLoadFileApiResponseType as DownLoadFileApiResponseType,
    index$1_DownLoadFileApiType as DownLoadFileApiType,
    index$1_GetCSRFTokenApiResponseType as GetCSRFTokenApiResponseType,
    index$1_GetCSRFTokenApiType as GetCSRFTokenApiType,
    index$1_GetCookieApiResponseType as GetCookieApiResponseType,
    index$1_GetCookieApiType as GetCookieApiType,
    index$1_GetCredentialsApiType as GetCredentialsApiType,
    index$1_GetCredentialsResponseApiType as GetCredentialsResponseApiType,
    index$1_GetEssenceMsgListApiResponseType as GetEssenceMsgListApiResponseType,
    index$1_GetEssenceMsgListApiType as GetEssenceMsgListApiType,
    index$1_GetForwardMessageApiResponseType as GetForwardMessageApiResponseType,
    index$1_GetForwardMessageApiType as GetForwardMessageApiType,
    index$1_GetFriendListApiResponseType as GetFriendListApiResponseType,
    index$1_GetFriendListApiType as GetFriendListApiType,
    index$1_GetGroupAtAllRemainApiResponseType as GetGroupAtAllRemainApiResponseType,
    index$1_GetGroupAtAllRemainApiType as GetGroupAtAllRemainApiType,
    index$1_GetGroupFileSystemInfoApiResponseType as GetGroupFileSystemInfoApiResponseType,
    index$1_GetGroupFileSystemInfoApiType as GetGroupFileSystemInfoApiType,
    index$1_GetGroupFileUrlApiResponseType as GetGroupFileUrlApiResponseType,
    index$1_GetGroupFileUrlApiType as GetGroupFileUrlApiType,
    index$1_GetGroupFilesByFolderApiResponseType as GetGroupFilesByFolderApiResponseType,
    index$1_GetGroupFilesByFolderApiType as GetGroupFilesByFolderApiType,
    index$1_GetGroupHonorInfoApiResponseType as GetGroupHonorInfoApiResponseType,
    index$1_GetGroupHonorInfoApiType as GetGroupHonorInfoApiType,
    index$1_GetGroupInfoApiResponseType as GetGroupInfoApiResponseType,
    index$1_GetGroupInfoApiType as GetGroupInfoApiType,
    index$1_GetGroupListApiResponseType as GetGroupListApiResponseType,
    index$1_GetGroupListApiType as GetGroupListApiType,
    index$1_GetGroupMemberInfoApiResponseType as GetGroupMemberInfoApiResponseType,
    index$1_GetGroupMemberInfoApiType as GetGroupMemberInfoApiType,
    index$1_GetGroupMemberListApiResponseType as GetGroupMemberListApiResponseType,
    index$1_GetGroupMemberListApiType as GetGroupMemberListApiType,
    index$1_GetGroupMsgHistoryApiResponseType as GetGroupMsgHistoryApiResponseType,
    index$1_GetGroupMsgHistoryApiType as GetGroupMsgHistoryApiType,
    index$1_GetGroupNoticeApiResponseType as GetGroupNoticeApiResponseType,
    index$1_GetGroupNoticeApiType as GetGroupNoticeApiType,
    index$1_GetGroupRootFilesApiResponseType as GetGroupRootFilesApiResponseType,
    index$1_GetGroupRootFilesApiType as GetGroupRootFilesApiType,
    index$1_GetGroupSystemMsgApiResponseType as GetGroupSystemMsgApiResponseType,
    index$1_GetGroupSystemMsgApiType as GetGroupSystemMsgApiType,
    index$1_GetImageApiResponseType as GetImageApiResponseType,
    index$1_GetImageApiType as GetImageApiType,
    index$1_GetLoginInfoApiResponseType as GetLoginInfoApiResponseType,
    index$1_GetLoginInfoApiType as GetLoginInfoApiType,
    index$1_GetMessageApiResponseType as GetMessageApiResponseType,
    index$1_GetMessageApiType as GetMessageApiType,
    index$1_GetModelShowApiResponseType as GetModelShowApiResponseType,
    index$1_GetModelShowApiType as GetModelShowApiType,
    index$1_GetOnlineClientsApiResponseType as GetOnlineClientsApiResponseType,
    index$1_GetOnlineClientsApiType as GetOnlineClientsApiType,
    index$1_GetRecordApiResponseType as GetRecordApiResponseType,
    index$1_GetRecordApiType as GetRecordApiType,
    index$1_GetStatusApiResponseType as GetStatusApiResponseType,
    index$1_GetStatusApiType as GetStatusApiType,
    index$1_GetStrangerInfoApiResponseType as GetStrangerInfoApiResponseType,
    index$1_GetStrangerInfoApiType as GetStrangerInfoApiType,
    index$1_GetUnidirectionalFriendListApiResponseType as GetUnidirectionalFriendListApiResponseType,
    index$1_GetUnidirectionalFriendListApiType as GetUnidirectionalFriendListApiType,
    index$1_GetVersionInfoApiResponseType as GetVersionInfoApiResponseType,
    index$1_GetVersionInfoApiType as GetVersionInfoApiType,
    index$1_MarkMsgAsReadApiResponseType as MarkMsgAsReadApiResponseType,
    index$1_MarkMsgAsReadApiType as MarkMsgAsReadApiType,
    index$1_OcrImageApiResponseType as OcrImageApiResponseType,
    index$1_OcrImageApiType as OcrImageApiType,
    index$1_ReloadEventFilterApiResponseType as ReloadEventFilterApiResponseType,
    index$1_ReloadEventFilterApiType as ReloadEventFilterApiType,
    index$1_SendGroupForwardMessageApiResponseType as SendGroupForwardMessageApiResponseType,
    index$1_SendGroupForwardMessageApiType as SendGroupForwardMessageApiType,
    index$1_SendGroupMessageApiResponseType as SendGroupMessageApiResponseType,
    index$1_SendGroupMessageApiType as SendGroupMessageApiType,
    index$1_SendGroupNoticeApiResponseType as SendGroupNoticeApiResponseType,
    index$1_SendGroupNoticeApiType as SendGroupNoticeApiType,
    index$1_SendGroupSignApiResponseType as SendGroupSignApiResponseType,
    index$1_SendGroupSignApiType as SendGroupSignApiType,
    index$1_SendMessageApiResponseType as SendMessageApiResponseType,
    index$1_SendMessageApiType as SendMessageApiType,
    index$1_SendObjType as SendObjType,
    index$1_SendPrivateMessageApiResponseType as SendPrivateMessageApiResponseType,
    index$1_SendPrivateMessageApiType as SendPrivateMessageApiType,
    index$1_SetEssenceMsgApiResponseType as SetEssenceMsgApiResponseType,
    index$1_SetEssenceMsgApiType as SetEssenceMsgApiType,
    index$1_SetFriendAddRequestApiResponseType as SetFriendAddRequestApiResponseType,
    index$1_SetFriendAddRequestApiType as SetFriendAddRequestApiType,
    index$1_SetGroupAddRequestApiResponseType as SetGroupAddRequestApiResponseType,
    index$1_SetGroupAddRequestApiType as SetGroupAddRequestApiType,
    index$1_SetGroupAdminApiResponseType as SetGroupAdminApiResponseType,
    index$1_SetGroupAdminApiType as SetGroupAdminApiType,
    index$1_SetGroupAnonymousApiResponseType as SetGroupAnonymousApiResponseType,
    index$1_SetGroupAnonymousApiType as SetGroupAnonymousApiType,
    index$1_SetGroupAnonymousBanApiResponseType as SetGroupAnonymousBanApiResponseType,
    index$1_SetGroupAnonymousBanApiType as SetGroupAnonymousBanApiType,
    index$1_SetGroupBanApiResponseType as SetGroupBanApiResponseType,
    index$1_SetGroupBanApiType as SetGroupBanApiType,
    index$1_SetGroupCardApiResponseType as SetGroupCardApiResponseType,
    index$1_SetGroupCardApiType as SetGroupCardApiType,
    index$1_SetGroupKickApiResponseType as SetGroupKickApiResponseType,
    index$1_SetGroupKickApiType as SetGroupKickApiType,
    index$1_SetGroupLeaveApiResponseType as SetGroupLeaveApiResponseType,
    index$1_SetGroupLeaveApiType as SetGroupLeaveApiType,
    index$1_SetGroupNameApiResponseType as SetGroupNameApiResponseType,
    index$1_SetGroupNameApiType as SetGroupNameApiType,
    index$1_SetGroupPortraitApiResponseType as SetGroupPortraitApiResponseType,
    index$1_SetGroupPortraitApiType as SetGroupPortraitApiType,
    index$1_SetGroupSpecialTitleApiResponseType as SetGroupSpecialTitleApiResponseType,
    index$1_SetGroupSpecialTitleApiType as SetGroupSpecialTitleApiType,
    index$1_SetGroupWholeBanApiResponseType as SetGroupWholeBanApiResponseType,
    index$1_SetGroupWholeBanApiType as SetGroupWholeBanApiType,
    index$1_SetModelShowApiResponseType as SetModelShowApiResponseType,
    index$1_SetModelShowApiType as SetModelShowApiType,
    index$1_SetQQProfileType as SetQQProfileType,
    index$1_SetRestartApiResponseType as SetRestartApiResponseType,
    index$1_SetRestartApiType as SetRestartApiType,
    index$1_UploadGroupFileApiResponseType as UploadGroupFileApiResponseType,
    index$1_UploadGroupFileApiType as UploadGroupFileApiType,
    index$1_UploadPrivateFileApiResponseType as UploadPrivateFileApiResponseType,
    index$1_UploadPrivateFileApiType as UploadPrivateFileApiType,
  };
}

declare const CqApi: {
    canSendImageApi: (param: CanSendImageApiType) => Promise<CanSendImageApiResponseType>;
    canSendRecordApi: (param: CanSendRecordApiType) => Promise<CanSendRecordApiResponseType>;
    checkUrlSafelyApi: (param: CheckUrlSafelyApiType) => Promise<CheckUrlSafelyApiResponseType>;
    cleanCacheApiExpect: (param: CleanCacheApiType) => Promise<CleanCacheApiResponseType>;
    createGroupFileFolderApi: (param: CreateGroupFileFolderApiType) => Promise<CreateGroupFileFolderApiResponseType>;
    deleteEssenceMsgApi: (param: DeleteEssenceMsgApiType) => Promise<DeleteEssenceMsgApiResponseType>;
    deleteFriendApi: (param: DeleteFriendApiType) => Promise<DeleteFriendApiResponseType>;
    deleteGroupFileApi: (param: DeleteGroupFileApiType) => Promise<DeleteGroupFolderApiResponseType>;
    deleteGroupFolderApi: (param: DeleteGroupFolderApiType) => Promise<DeleteGroupFolderApiResponseType>;
    deleteMessageApi: (param: DeleteMessageApiType) => Promise<DeleteMessageApiReponseType>;
    downloadFileApi: (param: DownLoadFileApiType) => Promise<DownLoadFileApiResponseType>;
    getCookiesApiExpect: (param: GetCookieApiType) => Promise<GetCookieApiResponseType>;
    getCredentialsApiExpect: (param: GetCredentialsApiType) => Promise<GetCredentialsResponseApiType>;
    getCSRFTokenApiExpect: (param: GetCSRFTokenApiType) => Promise<GetCSRFTokenApiResponseType>;
    getEssenceMsgListApi: (param: GetEssenceMsgListApiType) => Promise<GetEssenceMsgListApiResponseType>;
    GetForwardMessageApi: (param: GetForwardMessageApiType) => Promise<GetForwardMessageApiResponseType>;
    getFriendListApi: (param: GetFriendListApiType) => Promise<GetFriendListApiResponseType>;
    getGroupAtAllRemainApi: (param: GetGroupAtAllRemainApiType) => Promise<GetGroupAtAllRemainApiResponseType>;
    getGroupFileSystemInfoApi: (param: GetGroupFileSystemInfoApiType) => Promise<GetGroupFileSystemInfoApiResponseType>;
    getGroupFilesByFolderApi: (param: GetGroupFilesByFolderApiType) => Promise<GetGroupFilesByFolderApiResponseType>;
    getGroupFileUrlApi: (param: GetGroupFileUrlApiType) => Promise<GetGroupFileUrlApiResponseType>;
    getGroupHonorInfoApi: (param: GetGroupHonorInfoApiType) => Promise<GetGroupHonorInfoApiResponseType>;
    getGroupInfoApi: (param: GetGroupInfoApiType) => Promise<GetGroupInfoApiResponseType>;
    getGroupListApi: (param: GetGroupListApiType) => Promise<GetGroupListApiResponseType>;
    getGroupMemberListApi: (param: GetGroupMemberListApiType) => Promise<GetGroupMemberListApiResponseType>;
    getGroupMessageHistoryApi: (param: GetGroupMsgHistoryApiType) => Promise<GetGroupMsgHistoryApiResponseType>;
    getGroupNoticeApi: (param: GetGroupNoticeApiType) => Promise<GetGroupNoticeApiResponseType>;
    getGroupRootFilesApi: (param: GetGroupRootFilesApiType) => Promise<GetGroupRootFilesApiResponseType>;
    getGroupSystemMsgApi: (param: GetGroupSystemMsgApiType) => Promise<GetGroupSystemMsgApiResponseType>;
    getImageApi: (param: GetImageApiType) => Promise<GetImageApiResponseType>;
    getLoginInfoApi: (param: GetLoginInfoApiType) => Promise<GetLoginInfoApiResponseType>;
    getMessageApi: (param: GetMessageApiType) => Promise<GetMessageApiResponseType>;
    getModelShowApi: (param: GetModelShowApiType) => Promise<GetModelShowApiResponseType>;
    getOnlineClientsApi: (param: GetOnlineClientsApiType) => Promise<GetOnlineClientsApiResponseType>;
    getRecordApiExpect: (param: GetRecordApiType) => Promise<GetRecordApiResponseType>;
    getStatusApi: (param: GetStatusApiType) => Promise<GetStatusApiResponseType>;
    getStrangerInfoApi: (param: GetStrangerInfoApiType) => Promise<GetStrangerInfoApiResponseType>;
    getUnidirectionalFriendListApi: (param: GetUnidirectionalFriendListApiType) => Promise<GetUnidirectionalFriendListApiResponseType>;
    getVersionInfoApi: (param: GetVersionInfoApiType) => Promise<GetVersionInfoApiResponseType>;
    markMessageAsReadApi: (param: MarkMsgAsReadApiType) => Promise<MarkMsgAsReadApiResponseType>;
    ocrImageApi: (param: OcrImageApiType) => Promise<OcrImageApiResponseType>;
    reloadEventFilterApi: (param: ReloadEventFilterApiType) => Promise<ReloadEventFilterApiResponseType>;
    sendGroupForwardMessageApi: (param: SendGroupForwardMessageApiType) => Promise<SendGroupForwardMessageApiResponseType>;
    sendGroupMessageApi: (param: SendGroupMessageApiType) => Promise<SendGroupMessageApiResponseType>;
    sendGroupNoticeApi: (param: SendGroupNoticeApiType) => Promise<SendGroupNoticeApiResponseType>;
    sendGroupSignApi: (param: SendGroupSignApiType) => Promise<SendGroupSignApiResponseType>;
    sendMessageApi: (param: SendMessageApiType) => Promise<SendMessageApiResponseType>;
    sendPrivateMessageApi: (param: SendPrivateMessageApiType) => Promise<SendPrivateMessageApiResponseType>;
    setEssenceMsgApi: (param: SetEssenceMsgApiType) => Promise<SetEssenceMsgApiResponseType>;
    setFriendAddRequestApi: (param: SetFriendAddRequestApiType) => Promise<SetFriendAddRequestApiResponseType>;
    setGroupAddRequestApi: (param: SetGroupAddRequestApiType) => Promise<SetGroupAddRequestApiResponseType>;
    setGroupAdminApi: (param: SetGroupAdminApiType) => Promise<SetGroupAdminApiResponseType>;
    setGroupAnonymousApi: (param: SetGroupAnonymousApiType) => Promise<SetGroupAnonymousApiResponseType>;
    setGroupAnonymousBanApi: (param: SetGroupAnonymousBanApiType) => Promise<SetGroupAnonymousBanApiResponseType>;
    setGroupBanApi: (param: SetGroupBanApiType) => Promise<SetGroupBanApiResponseType>;
    setGroupCardApi: (param: SetGroupCardApiType) => Promise<SetGroupCardApiResponseType>;
    setGroupLeaveApi: (param: SetGroupLeaveApiType) => Promise<SetGroupLeaveApiResponseType>;
    setGroupNameApi: (param: SetGroupNameApiType) => Promise<SetGroupNameApiResponseType>;
    setGroupPortraitApi: (param: SetGroupPortraitApiType) => Promise<SetGroupPortraitApiResponseType>;
    setGroupSpecialTitleApi: (param: SetGroupSpecialTitleApiType) => Promise<SetGroupSpecialTitleApiResponseType>;
    setGroupWholeBanApi: (param: SetGroupWholeBanApiType) => Promise<SetGroupWholeBanApiResponseType>;
    setModelShowApi: (param: SetModelShowApiType) => Promise<SetModelShowApiResponseType>;
    setQQProfileApi: (param: SetQQProfileType) => Promise<SetQQProfileType>;
    setRestartApi: (param: SetRestartApiType) => Promise<SetRestartApiResponseType>;
    uploadGroupFileApi: (param: UploadGroupFileApiType) => Promise<UploadGroupFileApiResponseType>;
    uploadPrivateFileApi: (param: UploadPrivateFileApiType) => Promise<UploadPrivateFileApiResponseType>;
};

declare function initLinkServer(port?: number, ip?: string): Promise<GetLoginInfoApiResponseType>;
declare function initLinkServer(fullPath?: string): Promise<GetLoginInfoApiResponseType>;
declare const linkServer: typeof initLinkServer;

/**
 * 好友添加
 * https://docs.go-cqhttp.org/event/#%E5%A5%BD%E5%8F%8B%E6%B7%BB%E5%8A%A0
 */
type FriendAddType = GeneralNoticePost & {
    notice_type: 'friend_add';
    /**
     * 新添加好友的qq
     */
    user_id: number;
};

/**
 * 精华消息
 */
type GroupEssenceType = GeneralNoticePost & {
    notice_type: 'essence';
    /**
     * 添加精华消息、移除精华消息
     */
    sub_type: 'add' | 'delete';
    /**
     * 消息发送者id
     */
    sender_id: number;
    /**
     * 操作者id
     */
    operator_id: number;
    /**
     * 消息id
     */
    message_id: number;
};

type GroupLuckyKingType = GeneralNoticePost & {
    notice_type: 'notify';
    sub_type: 'lucky_king';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 红包发送者qq
     */
    user_id: number;
    /**
     * 运气王qq
     */
    target_id: number;
};

/**
 * 收到好友请求
 */
type FriendAddRequestType = GeneralRequestPost & {
    request_type: 'friend';
    /**
     * 发送请求的qq
     */
    user_id: number;
    /**
     * 验证消息
     */
    comment: string;
    /**
     * 请求 flag, 在调用处理请求的 API 时需要传入
     */
    flag: string;
};

type GroupAddRequestType = GeneralRequestPost & {
    request_type: 'group';
    /**
     * 加群请求、邀请登录号入群
     */
    sub_type: 'add' | 'invite';
    /**
     * 群号
     */
    group_id: number;
    /**
     * 发送请求的qq
     */
    user_id: number;
    /**
     * 验证消息
     */
    comment: string;
    /**
     * 请求 flag, 在调用处理请求的 API 时需要传入
     */
    flag: string;
};

type index_ClientStatusUpdateType = ClientStatusUpdateType;
type index_FriendAddRequestType = FriendAddRequestType;
type index_FriendAddType = FriendAddType;
type index_FriendMessageRecallType = FriendMessageRecallType;
type index_FriendMessageType = FriendMessageType;
type index_FriendPokeType = FriendPokeType;
type index_GroupAddRequestType = GroupAddRequestType;
type index_GroupAdminUpdateType = GroupAdminUpdateType;
type index_GroupBanType = GroupBanType;
type index_GroupCardUpdateType = GroupCardUpdateType;
type index_GroupEssenceType = GroupEssenceType;
type index_GroupHonorUpdateType = GroupHonorUpdateType;
type index_GroupLuckyKingType = GroupLuckyKingType;
type index_GroupMemberDecreaseType = GroupMemberDecreaseType;
type index_GroupMemberIncreaseType = GroupMemberIncreaseType;
type index_GroupMessageRecallType = GroupMessageRecallType;
type index_GroupMessageType = GroupMessageType;
type index_GroupPokeType = GroupPokeType;
type index_GroupUploadFileType = GroupUploadFileType;
type index_ReceiveOfflineFileType = ReceiveOfflineFileType;
declare namespace index {
  export {
    index_ClientStatusUpdateType as ClientStatusUpdateType,
    index_FriendAddRequestType as FriendAddRequestType,
    index_FriendAddType as FriendAddType,
    index_FriendMessageRecallType as FriendMessageRecallType,
    index_FriendMessageType as FriendMessageType,
    index_FriendPokeType as FriendPokeType,
    index_GroupAddRequestType as GroupAddRequestType,
    index_GroupAdminUpdateType as GroupAdminUpdateType,
    index_GroupBanType as GroupBanType,
    index_GroupCardUpdateType as GroupCardUpdateType,
    index_GroupEssenceType as GroupEssenceType,
    index_GroupHonorUpdateType as GroupHonorUpdateType,
    index_GroupLuckyKingType as GroupLuckyKingType,
    index_GroupMemberDecreaseType as GroupMemberDecreaseType,
    index_GroupMemberIncreaseType as GroupMemberIncreaseType,
    index_GroupMessageRecallType as GroupMessageRecallType,
    index_GroupMessageType as GroupMessageType,
    index_GroupPokeType as GroupPokeType,
    index_GroupUploadFileType as GroupUploadFileType,
    index_ReceiveOfflineFileType as ReceiveOfflineFileType,
  };
}

declare const useMod: {
    useMessageMod: (mod: (GroupMessageModType | FriendMessageModType)[]) => void;
    useNoticeMod: (mod: (FriendAddModType | ClientStatusUpdateModType | GroupBanModType | GroupMessageRecallModType | FriendPokeModType | GroupAdminUpdateModType | GroupCardUpdateModType | GroupEssenceModType | GroupHonorUpdateModType | GroupLuckyKingModType | GroupMemberDecreaseModType | GroupMemberIncreaseModType | GroupPokeModType | GroupUploadFileModType | ReceiveOfflineFileModType)[]) => void;
};
declare const modMonitor: {
    messageModStore: ModStore[];
    noticeModStore: ModStore[];
    requestModStore: ModStore[];
};

export { CqApi, index$2 as ModTypes, index as PostTypes, index$1 as apis, linkServer as default, modMonitor, useMod };
