import { IUser } from '../decorators/user.decorator'; export declare class ContextProvider { private static readonly nameSpace; private static readonly authUserKey; private static readonly routerKey; private static readonly sourceKey; private static readonly languageKey; private static readonly requestKey; static get(key: string): import("nestjs-cls/dist/src/types/type-if-type.type").TypeIfUndefined; static set(key: string, value: any): void; static getKeyWithNamespace(key: string): string; static setRouter(user: any): void; static getCanLog(): boolean; static getRouter(): { action: { feature: string; action: string; }; id: string; method: object; ip: string; canLog: boolean; }; static setRequestId(id: string): void; static getRequestId(): string; static setAuthUser(user: IUser): void; static setLanguage(language: string): void; static getLanguage(): string; static getAuthUserField(field?: T): IUser[T]; static getAuthUser(): IUser; static getAppId(): string; static getRole(): string; static getAdmin(): boolean; static getTenantId(): string; /** * 设置请求来源(如业务主键ID等) */ static setSource(source: string): void; /** * 获取请求来源 */ static getSource(): string | undefined; }