export declare function OAUTH_CONFIG(opts: { redisName?: string; timeout?: number; cachedTimeOut?: number; }): (_target: any, _fieldName: any, _func: any) => void; export declare function getUserByToken(token: string): Promise; export declare function authen(token: string): Promise; export declare function authoriz(token: string, path: string, action: string): Promise<{ action: string; account_id: string; project_id: string; }>; export declare function AUTHEN(): (target: any, fieldName: any, func: any) => void; export declare function AUTHORIZ(path?: string, action?: string): Function;