///
/**
* Supported implementations:
* - Node.js 'buffer.Blob', e.g. 'new buffer.Blob([JSON.stringify({someValue: 42})], {type: "application/json"})'
* - Browser 'Blob', e.g. 'new Blob([JSON.stringify({someValue: 42})], {type: "application/json"})'
* - Browser 'File', e.g. from a
*/
import { BeginMultipartUploadRequest } from "../gen";
import { ChunkedStream } from "./ChunkedStream";
export interface BlobLike {
readonly name?: string;
readonly size: number;
readonly type?: string;
slice: (start?: number, end?: number) => BlobLike;
}
export interface CancellationToken {
isCancelled: boolean;
}
export declare class CancelledError extends Error {
msg?: string | undefined;
name: "CancelledError";
constructor(msg?: string | undefined);
}
export declare type UploadSource = NodeJS.ReadableStream | BlobLike | Buffer | string;
export interface UploadManagerParams extends Omit {
accountId: string;
cancellationToken?: CancellationToken;
data: UploadSource;
maxConcurrentUploadParts?: number;
/**
* Only required if 'data' is a 'ReadableStream'.
*/
size?: number;
}
export declare type UploadSourceProcessed = ChunkedStream | BlobLike | Buffer;