/**
 * ali-oss模块
 * @date 2022-03
 * @author 何华东
 */
/**
 * ali-oss客户端实例
 *
 * ```ts
 * import { aliOss, aliOssClient } from "refs/nslib";
 *
 * //使用封装好的上传base64图片到ali-oss
 * let res = await aliOss.putBase64Image('data:image/jpg;base64,/9j/4AAQSkZJRgABAQAASABIAA...');
 * //判断返回值是否成功，返回字段多，其实判断url就够了
 * throwIfUrlIsEmpty(res);
 * let imgUrl = res.url;
 *
 * //使用原生方法上传文件
 * let res = await aliOssClient.put(`${filename}`, buffer);
 * throwIfUrlIsEmpty(res);
 * let url = res.url;
 * ```
 * @see [ali-oss](https://www.npmjs.com/package/ali-oss)
 */
export declare let aliOssClient: any;
/**
 * ali-oss响应类
 */
declare class AliOssResponse {
    name: string;
    url: string;
    res: {
        status: number;
        statusCode: number;
        statusMessage: string;
    };
}
/**
 * 如果ali-oss响应的url为空则抛出异常
 */
export declare function throwIfUrlIsEmpty(aliOssResponse: AliOssResponse): void;
/**
 * 上传base64图片到ali-oss
 */
export declare function putBase64Image(base64ImageStr: string): Promise<AliOssResponse>;
export {};
