import { CogniteClient } from '@cognite/sdk'; import { CdfModelNodeCollectionDataProvider } from './CdfModelNodeCollectionDataProvider'; import { CdfNodeCollectionBase } from './CdfNodeCollectionBase'; import { NodeCollectionSerializationContext } from './NodeCollectionDeserializer'; import { SerializedNodeCollection } from './SerializedNodeCollection'; /** * Collection that holds a set of nodes including children identified by nodeIds. Note that * this involves remapping IDs to "tree indices" and subtree sized used by Reveal using * the CDF API. Its often better to use one of the other node collections or @see {TreeIndexNodeCollection} * whenever possible for best performance. */ export declare class NodeIdNodeCollection extends CdfNodeCollectionBase { static readonly classToken = "NodeIdNodeCollection"; private readonly _client; private readonly _model; private _nodeIds; constructor(client: CogniteClient, model: CdfModelNodeCollectionDataProvider); /** * Populates the collection with the nodes with the IDs provided. All children of * the nodes are also included in the collection. * @param nodeIds IDs of nodes to include in the collection. * @returns Promise that resolves when the collection is populated. */ executeFilter(nodeIds: number[]): Promise; serialize(): SerializedNodeCollection; static deserialize(descriptor: SerializedNodeCollection, context: NodeCollectionSerializationContext): Promise; }