@yuntools/ali-oss
Version:
阿里云 OSS 命令行工具 ossutil 封装,支持 ESM,CJS 导入,提供 TypeScript 类型定义
21 lines • 825 B
TypeScript
import { Config, DataBase, DataKey, ParamMap } from '../types.js';
import { CpOptions } from './cp.js';
/**
* @link https://help.aliyun.com/document_detail/120057.html
*/
export interface DownloadOptions extends CpOptions {
/** 目的文件,必须是本地文件 */
target: string;
/** cloudurl 路径,不包括 bucket */
src: string;
}
export declare const initOptions: DownloadOptions;
export interface DataDownload extends DataBase {
/** byte/s */
[DataKey.averageSpeed]: number | undefined;
[DataKey.succeedTotalNumber]: number | undefined;
[DataKey.succeedTotalSize]: string | undefined;
[DataKey.downloadObjects]: number;
}
export declare function processInput(input: DownloadOptions, globalConfig: Config | undefined): Promise<ParamMap>;
//# sourceMappingURL=download.d.ts.map