import type { BatchData, QueueState, Batch, BatchItem, UploadOptions, QueueStateData } from '../types'; declare const getBatchFromState: (state: QueueStateData, id: string) => Batch; declare const getBatchDataFromItemId: (queue: QueueState, itemId: string) => BatchData; declare const getBatchFromItemId: (queue: QueueState, itemId: string) => Batch; declare const removeBatchItems: (queue: QueueState, batchId: string) => void; declare const finalizeBatch: (queue: QueueState, batchId: string, eventType: string, finalState?: string, additionalInfo?: string) => void; declare const cancelBatchForItem: (queue: QueueState, itemId: string) => void; declare const failBatchForItem: (queue: QueueState, itemId: string, err: Error) => void; declare const isNewBatchStarting: (queue: QueueState, itemId: string) => boolean; declare const loadNewBatchForItem: (queue: QueueState, itemId: string) => Promise; declare const cleanUpFinishedBatches: (queue: QueueState) => void; declare const triggerUploaderBatchEvent: (queue: QueueState, batchId: string, event: string) => void; declare const getIsBatchReady: (queue: QueueState, batchId: string) => boolean; declare const detachRecycledFromPreviousBatch: (queue: QueueState, item: BatchItem) => void; declare const preparePendingForUpload: (queue: QueueState, uploadOptions?: UploadOptions) => void; declare const removePendingBatches: (queue: QueueState) => void; declare const incrementBatchFinishedCounter: (queue: QueueState, batchId: string) => void; declare const getIsBatchFinalized: (batch: Batch) => boolean; /** * As this is a data-destructive method it is meant * to be used with fast-abort ONLY. Not for any regular operation */ declare const clearBatchData: (queue: QueueState, batchId: string) => void; export { loadNewBatchForItem, isNewBatchStarting, cancelBatchForItem, getBatchFromItemId, getBatchDataFromItemId, cleanUpFinishedBatches, triggerUploaderBatchEvent, getIsBatchReady, getBatchFromState, detachRecycledFromPreviousBatch, preparePendingForUpload, removePendingBatches, incrementBatchFinishedCounter, getIsBatchFinalized, failBatchForItem, finalizeBatch, removeBatchItems, clearBatchData, }; //# sourceMappingURL=batchHelpers.d.ts.map