import { OpResult } from 'mslib';
/**
 * 阿里云 OSS 客户端
 * @date 2021-10-22 09:48:32
 * @author 吴锋霖
 */
export declare class OSSClient {
    private client;
    constructor(region: string, accessKeyId: string, accessKeySecret: string, bucket: string);
    /**
     * 上传文件至OSS
     * @param name 名称
     * @param file 文件 String(文件路径，不支持目录)|Buffer|ReadStream
     */
    upload(name: string, file: any): Promise<OpResult<string>>;
}
