import 'reflect-metadata'; /** * 标记接口需要 Token 校验 * @param isCheck 是否校验,默认 true * @returns MethodDecorator */ declare function checkApiToken(isCheck?: boolean): MethodDecorator; /** * 获取接口是否设置了 Token 校验 * @param target 目标对象 * @param propertyKey 属性名 * @returns 是否需要校验 */ declare function getApiToken(target: any, propertyKey: string): any; /** * 标记接口需要登录态校验 * @param isCheck 是否校验,默认 true * @returns MethodDecorator */ declare function checkApiLogin(isCheck?: boolean): MethodDecorator; /** * 获取接口是否设置了登录态校验 * @param target 目标对象 * @param propertyKey 属性名 * @returns 是否需要校验 */ declare function getApiLogin(target: any, propertyKey: string): any; /** * 标记类的 API 路由配置 * @param options API 配置(url 等) * @returns ClassDecorator */ declare function api(options: any): ClassDecorator; /** * 获取类的 API 装饰配置 * @param target 目标类或实例 * @returns API 配置对象 */ declare function getApi(target: any): any; /** * 标记类为请求对象实例 * @param options 配置选项 * @returns ClassDecorator */ declare function req(options: any): ClassDecorator; /** * 获取类是否标记为请求对象实例 * @param target 目标类或实例 * @returns 配置选项 */ declare function getReq(target: any): any; declare const _default: { apiTokenMetadataKey: string; apiAuthMetadataKey: string; apiRequestKey: string; apiRequestInstanceKey: string; checkApiToken: typeof checkApiToken; getApiToken: typeof getApiToken; checkApiLogin: typeof checkApiLogin; getApiLogin: typeof getApiLogin; api: typeof api; getApi: typeof getApi; req: typeof req; getReq: typeof getReq; }; export default _default;