type State = "NOT_STARTED" | "UPLOADING" | "BACKOFF" | "SUCCESSFUL" | "FAILED" | "CANCELLED"; export declare class GCSResumableUpload { private sessionURI; private localFile; private crc32cb64; private onProgressHandlers; private currentProgress; private currentState; private onStateChangeHandlers; private xhr; constructor(sessionURI: string, localFile: File); calculateChecksum(): Promise; cancel(): void; start(): Promise; private handleChunk; private finalDataStored; private getUploadStatus; private backOff; private logUploadProgress; onProgress(handler: (percent: number) => void): void; private fireProgress; onStateChange(handler: (newState: State) => void): void; private fireNewState; } export {};