import { KeyValueCache, TileKey } from "@here/olp-sdk-core"; import { Index as QuadTreeIndex } from "@here/olp-sdk-dataservice-api/lib/query-api"; interface QuadTreeIndexCacheParams { hrn: string; layerId: string; root: TileKey; depth: number; version?: number; } /** * Caches the QuadTreeIndex using a key-value pair. */ export declare class QuadTreeIndexCacheRepository { private readonly cache; /** * Generates the [[QuadTreeIndexCacheRepository]] instance. * * @param cache The [[KeyValueCache]] instance. * @return The [[QuadTreeIndexCacheRepository]] instance. */ constructor(cache: KeyValueCache); /** * Stores a key-value pair in the cache. * * @return True if the operation is successful, false otherwise. */ put(params: QuadTreeIndexCacheParams & { tree: QuadTreeIndex; }): boolean; /** * Gets a QuadTreeIndex from the cache. * * @param params [[QuadTreeIndexCacheParams]] object. * @return The QuadTreeIndex for the Tile, or undefined if the QuadTreeIndex does not exist. */ get(params: QuadTreeIndexCacheParams): QuadTreeIndex | undefined; private createKey; } export {};