/// <reference types="node" />
/**
 * OSS 对象存储服务(Object Storage Service)
 */
export declare abstract class OssService {
    abstract put(data: string | Buffer, name: string): Promise<string>;
}
/**
 * 上传base64到`OSS`服务器
 *
 * ```
 * import { downloadFile, putBase64File, CryptoUtils } from "refs/nslib";
 *
 * let buf = await downloadFile('https://image-cn.keytop.cn/452/172.19.2.6/2022/08/25/20220825143509132_172.19.2.6_024231.jpg');
 * let url = await putBase64File(CryptoUtils.base64Encode(buf), `${uuid()}.jpg`);
 * ```
 * @param name 对象名
 * @return 对象访问地址
 * @throw {@link Error}
 */
export declare function putBase64File(data: string, name: string): Promise<string>;
/**
 * 上传对象到`OSS`服务器
 *
 * ```
 * import { downloadFile, putFile } from "refs/nslib";
 *
 * let buf = await downloadFile('https://image-cn.keytop.cn/452/172.19.2.6/2022/08/25/20220825143509132_172.19.2.6_024231.jpg');
 * let url = await putFile(buf, `${uuid()}.jpg`);
 * ```
 * @param name 对象名
 * @return 对象访问地址
 * @throw {@link Error}
 */
export declare function putFile(data: string | Buffer, name: string): Promise<string>;
