import { ICacheClassPromise } from "@gongt/ts-stl-server/database/cache"; import { IUserProfile, IUserProfileBase } from "../bridge/define"; import { ClientJsBuilder } from "../inc/client-js-builder"; import { ExpressSupport } from "../inc/express-support"; import { PermissionSystem } from "../inc/permission-system"; import { UserSystem } from "../inc/user-system"; import { UserCenterApi } from "./user-center-api"; export declare type LoginParams = LoginParamsPassword | LoginParamsToken; export interface LoginParamsPassword { login: string; password: string; } export interface LoginParamsToken { token: string; } export interface IUserCenterOptions { clientUseHttps?: boolean; projectName: string; serverRequestKey: string; useCookie: boolean; /** 替换默认的内存缓存 */ cacheObject: ICacheClassPromise; serverKey: string; userCenterBaseUrl: string; } export declare class UserCenter { readonly options: IUserCenterOptions; /** @internal */ readonly cache: ICacheClassPromise; readonly express: ExpressSupport; readonly api: UserCenterApi; readonly client: ClientJsBuilder; readonly permission: PermissionSystem; readonly user: UserSystem; readonly projectName: string; readonly ucBaseUrl: string; readonly serverKey: string; constructor(options?: Partial); /** @deprecated */ createPermission(...args: any[]): any; /** @deprecated */ registerPermission(...args: any[]): any; /** @deprecated */ readonly AbstractPermission: any; /** @deprecated */ empty(...args: any[]): any; /** @deprecated */ mapUserId(...args: any[]): any; /** @deprecated */ getUserProfileByEmail(...args: any[]): any; /** @deprecated */ getUserProfile(...args: any[]): any; /** @deprecated */ login(...args: any[]): any; updateCache(token: string): Promise; toJSON(): { name: string; }; toString(): string; inspect(depth: any, options: any): any; }