///
export interface KF {
kf_account: string;
kf_nick: string;
kf_id: string;
kf_headimgurl: string;
kf_wx?: string;
invite_wx?: string;
invite_expire_time?: number;
invite_status?: 'waiting' | 'rejected' | 'expired';
}
declare const _default: {
getAutoReply(): Promise<{
is_add_friend_reply_open: 0 | 1;
is_autoreply_open: 0 | 1;
add_friend_autoreply_info?: {
type: "img" | "video" | "text" | "voice";
content: string;
};
message_default_autoreply_info?: {
type: "img" | "video" | "text" | "voice";
content: string;
};
keyword_autoreply_info?: {
list: {
rule_name: string;
create_time: number;
reply_mode: "reply_all" | "random_one";
keyword_list_info: {
type: "text";
match_mode: "contain" | "equal";
content: string;
}[];
reply_list_info: ({
type: "news";
content?: string;
news_info: {
list: {
title: string;
author: string;
digest: string;
show_cover: 0 | 1;
cover_url: string;
content_url: string;
source_url: string;
}[];
};
} | {
type: "img" | "video" | "text" | "voice";
content: string;
})[];
}[];
};
}>;
getKFList(): Promise;
addKFAccount(account: string, nickname: string): Promise;
inviteWorker(account: string, wx: string): Promise;
updateKFAccount(account: string, nickname: string): Promise;
setKFAccountAvatar(account: string, avatar: Buffer, filename?: string): Promise;
delKFAccount(account: string): Promise;
createKFSession(openid: string, account: string): Promise;
closeKFSession(openid: string, account: string): Promise;
getKFSession(openid: string): Promise<{
createtime: number;
kf_account: string;
}>;
getKFSessionList(account: string): Promise<{
createtime: number;
openid: string;
}[]>;
getWaitCaseList(): Promise<{
count: number;
waitcaselist: {
latest_time: number;
openid: string;
}[];
}>;
getMsgRecordList(starttime: number, endtime: number, msgid?: number, number?: number): Promise<{
recordlist: {
openid: string;
opercode: 2002 | 2003;
text: string;
time: number;
worker: string;
}[];
number: number;
msgid: number;
}>;
};
export default _default;