/**
 * 非标接口模块
 */
export declare let defaults: {
    key: string;
    iv: string;
};
/**
 * 非标接口3des加解密工具
 */
export declare class Des3Utils {
    /**
     * 加密
     */
    static encrypt(data: object | string, key: string, iv: string): {
        data: string;
        imageInfo: any;
    };
    /**
     * 解密
     */
    static decrypt(data: string | {
        data: string;
    }, key: string, iv: string): object;
}
/**
 * 非标接口装饰器
 *
 * 自动对请求参数进行解密(`DEBUG`环境下禁用), 异常捕获, 记录日志, 自动返回失败报文`ApiResponse.failed('xxx')`
 *
 * ```ts
 * import { ApiResponse, NonStandardApi } from "refs/nslib";
 *
 * export class RemoteOpen implements IService {
 *    //去掉注释
 *    //@NonStandardApi.Service('远程开闸')
 *    async doService(input) : Promise<ApiResponse> {
 *
 *       return ApiResponse.success;
 *    }
 * }
 * ```
 * @param description 服务描述，仅为日志输出
 */
export declare function Service(description?: string, config?: {
    /**
     * 是否记录接口调用(成功)日志
     */
    isLog?: boolean;
    /**
     * 是否启用加解密
     */
    secure?: boolean;
}): MethodDecorator;
/**
 * @returns Context.getRequestHeaders()['kt-token']
 */
export declare function getTokenFromHeader(): any;
