import { RevealGeometryCollectionType } from '../../../sector-parser'; /** * Map between a tree index and the set of sectors it has geometry in. Also contains helper functions to keep track of whether or not * a given sector has had all its tree indices added to the map. This means iterating over all tree indices in a sector will only be * done on first load. */ export declare class TreeIndexToSectorsMap { onChange?: (treeIndex: number, newSectorId: number) => void; private readonly _treeIndexToSectorIds; private readonly _parsedSectors; constructor(maxTreeIndex: number); /** * Store the fact that a tree index is found to have geometry in a certain sector * @param treeIndex Tree index * @param sectorId The sector id where the tree index was found */ set(treeIndex: number, sectorId: number): void; /** * Get the set of sectors a tree index is known to have geometry in * @param treeIndex Tree index * @returns The set of sectors */ getSectorIdsForTreeIndex(treeIndex: number): number[]; /** * Mark a sector as completed for a given geometry type. This will make subsequent calls to isCompleted * for this geometry type return true * @param sectorId The sector id * @param geometryType The geometry type */ markCompleted(sectorId: number, geometryType: RevealGeometryCollectionType): void; /** * Check whether or not a sector is completely processed, for a given geometry type * @param sectorId The sector id * @param geometryType The geometry type * @returns True if completed, false otherwise */ isCompleted(sectorId: number, geometryType: RevealGeometryCollectionType): boolean; }