Create a managed FileDownload object.
The FilesAPI instance to use
The ID of the file to download
The seed to use for decryption
Get the total amount of chunks in the file.
The total amount of chunks
Prepare the download process.
A promise that resolves when the download is prepared
Start the download process.
The function to get bytes from the file
A promise that resolves when the download is complete
The FileDownload class is a helper to download and decrypt files from the server.