// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. /** * Metadata for resumable downloads stored in .part.meta file */ export type DownloadMetadata = { url: string; fileName: string; totalSize: bigint; downloadedBytes: bigint; checksum: string | null; timestamp: bigint; segments: Array; }; /** * Download queue for persistence */ export type DownloadQueue = { pendingDownloads: Array }; /** * A download segment for multi-segment parallel downloading */ export type DownloadSegment = { start: bigint; end: bigint; downloaded: bigint; completed: boolean; }; export type DownloadTask = { url: string; path: string; sha1: string | null; sha256: string | null; }; /** * Progress event for Java download */ export type JavaDownloadProgress = { fileName: string; downloadedBytes: bigint; totalBytes: bigint; speedBytesPerSec: bigint; etaSeconds: bigint; status: string; percentage: number; }; /** * Pending download task for queue persistence */ export type PendingJavaDownload = { majorVersion: number; imageType: string; downloadUrl: string; fileName: string; fileSize: bigint; checksum: string | null; installPath: string; createdAt: bigint; }; export type ProgressEvent = { file: string; downloaded: bigint; total: bigint; status: string; completedFiles: number; totalFiles: number; totalDownloadedBytes: bigint; };