import { IServerAddress } from "./common"; export interface IPutResult { key: string; md5: string; } export declare type IOnProgress = (type: "upload" | "success" | "fail", data: { total: number; finishCount: number; file: string; key?: string; md5?: string; err?: Error; }) => void; export interface IPutOptions { timeout?: number; } export declare function putDir(server: IServerAddress, dir: string, onProgress?: IOnProgress, options?: IPutOptions): Promise; export declare function putFile(server: IServerAddress, filepath: string, options?: IPutOptions): Promise;