import { ConsumedSector, WantedSector } from '../../../cad-parsers'; export type SectorDownloadData = { sector: WantedSector; downloadSector: (sector: WantedSector, abortSignal: AbortSignal) => Promise; }; export declare class SectorDownloadScheduler { private readonly _maxConcurrentSectorDownloads; private readonly _pendingSectorDownloads; private readonly _queuedSectorDownloads; private readonly _sectorDownloadQueue; get numberOfPendingDownloads(): number; get numberOfQueuedDownloads(): number; constructor(maxConcurrentSectorDownloads?: number); queueSectorBatchForDownload(downloadData: SectorDownloadData[]): Promise[]; /** * Drops all downloads that are queued but not yet started, resolving them as discarded. * Downloads that are already in progress are left untouched. */ clearQueuedDownloads(): void; private createDiscardedConsumedSector; private abortPendingDownload; private removeDownloadFromQueue; private getOrAddToQueuedDownloads; private addSectorToPendingDownloads; private processNextQueuedSectorDownload; private downloadOrDiscard; private getSectorIdentifier; private createAbortSignal; }