/**
 * ali-oss模块
 * @date 2022-03
 * @author 何华东
 */
/// <reference types="node" />
import { Stream } from 'stream';
import { ListQuery, ListResponse, OssService } from "./OssService";
/**
 * ali-oss客户端实例
 *
 * 如已引用配置依赖[NsConfig](https://me.keytop.cn/service/config)将会自动创建该实例
 *
 * ```
 * import { aliOss, aliOssClient } from "refs/nslib";
 *
 * let res = await aliOssClient.put(`${filename}`, buffer);
 * aliOss.throwIfUrlIsEmpty(res);
 * let url = res.url;
 * ```
 * @see [ali-oss](https://www.npmjs.com/package/ali-oss)
 */
export declare let aliOssClient: any;
/**
 * ali-oss服务
 *
 * @see {@link OssService}
 */
export declare class AliOssService implements OssService {
    /** @inheritdoc */
    getRootPath(): any;
    /** @inheritdoc */
    put(file: string | Buffer | Stream, name: string): Promise<string>;
    /** @inheritdoc */
    list(query?: ListQuery): Promise<ListResponse>;
    /** @inheritdoc */
    delete(name: string): Promise<any>;
}
