import { CogniteClient } from '@cognite/sdk'; import { DataModelsSdk } from '../../../../DataModelsSdk'; import { Historical360ImageSet } from '../../../../types'; import { DMDataSourceType } from '../../../../DataSourceType'; import { DMInstanceKey, DMInstanceRef } from '../../../../../../utilities'; import { BatchLoader } from '../../../../utilities/BatchLoader'; /** * Coordinates batched loading of multiple 360 image collections. * Instead of loading each collection individually (1000 queries for 1000 collections), * it batches them into groups and makes far fewer queries (e.g., 20 queries for 1000 collections). * This allows collections with any number of images, not just ~200 per collection (10,000 / 50 batch size). * * This loader uses instance IDs directly from DMS queries to identify files, * eliminating the need for /files/byids API calls to resolve file metadata. * This significantly improves loading performance for large collections (e.g., 16k+ images). */ export declare class Cdf360CdmBatchCollectionLoader extends BatchLoader[]> { private readonly _dmsSdk; constructor(dmsSdk: DataModelsSdk, _cogniteSdk: CogniteClient); getCollectionDescriptors(identifier: DMInstanceRef): Promise[]>; protected fetchBatch(identifiers: DMInstanceRef[]): Promise[]>>; protected getKeyForIdentifier(identifier: DMInstanceRef): DMInstanceKey; protected getDefaultResult(_identifier: DMInstanceRef): Historical360ImageSet[]; private fetchAllPages; private groupResultsByCollection; /** * Creates file descriptors directly from the DMS image data using instance IDs. * This avoids the need to call /files/byids to resolve file metadata. * The instance IDs are used directly with the /files/downloadlink endpoint. */ private createFileDescriptorsFromImage; private createHistoricalImageSets; private getHistorical360ImageSet; private getImageRevision; private getRevisionTransform; private stringifyValue; private toNumber; }