///
///
import { Stream } from 'stream';
import { _FileInfo, _IKunlunFile, _IOpenSDKFile, UploadAvatarResult, FileUploadResult } from '../IResources';
import * as Request from '../../../request/interface';
import { AppCtx } from '../../../application/application';
export declare class _KunlunOpenSDKFile implements _IOpenSDKFile {
appCtx: AppCtx;
constructor(appCtx: AppCtx);
Upload(fileName: string, path: string): Promise;
Upload(fileName: string, reader: Stream): Promise;
Upload(fileName: string, buffer: Buffer): Promise;
UploadAvatar(fileName: string, path: string): Promise;
UploadAvatar(fileName: string, reader: Stream): Promise;
UploadAvatar(fileName: string, buffer: Buffer): Promise;
Download(fileID: string): Promise;
DownloadAvatar(imageID: string): Promise;
}
export declare class _KunlunFile implements _IKunlunFile {
download(fileToken: string): Promise;
download(fileToken: string, filePath?: string): Promise;
download(fileToken: _FileInfo): Promise;
download(fileInfo: _FileInfo, filePath: string): Promise;
upload(filePath: string): Promise;
upload(stream: Stream): Promise;
upload(filePath: string, expire: number, fileName?: string): Promise;
upload(stream: Stream, expire: number, fileName?: string): Promise;
}
/**
* OpenSDK 静态资源操作类
*/
export declare class _OpenSDKResources {
file: _IOpenSDKFile;
constructor(appCtx: AppCtx);
}
/**
* 静态资源操作类
*/
export declare class _Resources {
file: _IKunlunFile;
constructor();
}