///
import ObsClient from "esdk-obs-browserjs";
import Parse from "parse";
import * as i0 from "@angular/core";
/**
* HwobsDir 华为OBS目录接口
* @public
*/
export interface HwobsDir {
Prefix: string;
}
/**
* HwobsDir 华为OBS文件接口
* @public
*/
export interface HwobsFile {
ETag: "\"f0ec968fe51ab48348307e06476122eb\"";
Key: string;
LastModified: string;
Owner: object;
Size: string;
StorageClass: string;
}
/**
* HwobsService 华为OBS文件服务
* @public
*/
export declare class HwobsService {
obsClient: ObsClient;
bucketName: string;
host: string;
constructor();
/**
* 目录及检索相关函数
*/
listDir(prefix: any): Promise<{
dirs: Array;
files: Array;
}>;
/**
* 文件上传相关函数
* @param file
* @param key
* @returns
*/
uploadFile(file: File, key: string): Promise;
Attachment: any;
checkFileExists(file: any): Promise;
saveAttachment(file: File, key: string): Promise>;
getFileHash(file: File): Promise;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵprov: i0.ɵɵInjectableDeclaration;
}