import { Request } from "express-serve-static-core"; import { IUserProfileBase } from "../bridge/define"; import { UserCenter } from "../includes/user-center"; import { UserInstance } from "../includes/user-instance"; export declare class UserSystem { private uc; private api; private cache; constructor(uc: UserCenter); /** @internal */ createEmpty(req?: Request): UserInstance; /** 根据email获取用户id */ mapEmailToId(email: string): Promise; profileByEmail(email: any): Promise>; /** 根据id获取用户信息 */ profile(id: any): Promise>; /** * @private */ login(login: string | Request): Promise>; /** 手动登陆 */ login(login: string, password: string): Promise>; updateProfile(token: string, newProfile: Partial): Promise; }