Files
NapCatQQ/.pnpm-store/v3/files/ef/9489c9823a1844d738e51fb00f178c9bc225b4dea87ab0205e71fb466c3669cfc604bdf9835aca45af8f64f35a40951d5510a1ffb45daae2204b220fc01d5e
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

38 lines
1.5 KiB
Plaintext

import { FriendRequest, FriendV2 } from '../types';
import { InstanceContext, NapCatCore } from '../index';
import { LimitedHashTable } from '../../napcat-common/src/message-unique';
export declare class NTQQFriendApi {
context: InstanceContext;
core: NapCatCore;
constructor(context: InstanceContext, core: NapCatCore);
setBuddyRemark(uid: string, remark: string): Promise<void>;
getBuddyV2SimpleInfoMap(): Promise<Map<string, import("../types").SimpleInfo>>;
getBuddy(): Promise<FriendV2[]>;
getBuddyIdMap(): Promise<LimitedHashTable<string, string>>;
delBuddy(uid: string, tempBlock?: boolean, tempBothDel?: boolean): Promise<unknown>;
getBuddyV2ExWithCate(): Promise<{
categoryId: number;
categorySortId: number;
categoryName: string;
categoryMbCount: number;
onlineCount: number;
buddyList: import("../types").SimpleInfo[];
}[]>;
isBuddy(uid: string): Promise<boolean>;
clearBuddyReqUnreadCnt(): Promise<import("../index").GeneralCallResult>;
getBuddyReq(): Promise<import("../types").FriendRequestNotify>;
handleFriendRequest(notify: FriendRequest, accept: boolean): Promise<void>;
handleDoubtFriendRequest(friendUid: string, str1?: string, str2?: string): Promise<void>;
getDoubtFriendRequest(count: number): Promise<{
flag: string;
uin: string;
nick: string;
source: string;
reason: string;
msg: string;
group_code: string;
time: string;
type: string;
}[]>;
}