declare module "gcs-browser-upload" { type ChunkUploadData = { totalBytes: number uploadedBytes: number chunkIndex: number chunkLength: number } type UploadOptions = { /** A unique ID for the upload */ id: string /** GCS resumable URL */ url: string /** instance of File */ file: File /** chunk size must be a multiple of 262144 */ chunkSize?: number /** storage mechanism used to persist chunk meta data */ storage?: Storage /** content type of the file being uploaded */ contentType?: string /** a function that will be called with progress information */ onChunkUpload?: (data: ChunkUploadData) => void } export default class Upload { constructor(config: UploadOptions) start(): Promise pause(): void unpause(): void cancel(): void } }