///
///
import { BeginMultipartUploadRequest, FileDetails } from "./generated";
/**
* Workaround for tsc aliases, where we cannot export implementation-less modules in our dists.
*/
export declare const CommonTypesNoOp = false;
export interface BlobLike {
readonly name?: string;
readonly size: number;
readonly type?: string;
slice: (start?: number, end?: number) => BlobLike;
}
export interface CancellationToken {
isCancelled: boolean;
}
export interface UploadProgress {
bytesSent: number;
bytesTotal: number;
progress: number;
}
export type UploadResult = Omit & {
/**
* The file's ETag, short for "entity tag", reflects the file's version and changes whenever the file is modified.
*/
etag: string;
};
export type UploadSource = NodeJS.ReadableStream | BlobLike | Buffer | string;
export interface UploadManagerParams extends Omit {
cancellationToken?: CancellationToken;
data: UploadSource;
maxConcurrentUploadParts?: number;
onProgress?: (status: UploadProgress) => void;
/**
* Only required if 'data' is a 'ReadableStream'.
*/
size?: number;
}