import { HRN, OlpClientSettings } from "@here/olp-sdk-core"; import { IndexApi } from "@here/olp-sdk-dataservice-api"; import { IndexQueryRequest } from "@here/olp-sdk-dataservice-read"; /** * Parameters for use to initialize IndexLayerClient. */ export interface IndexLayerClientParams { /** The HRN of the catalog. */ catalogHrn: HRN; /** The ID of the layer. */ layerId: string; /** The [[OlpClientSettings]] instance. */ settings: OlpClientSettings; } /** * Describes a index layer and provides the possibility to get partitions metadata and data. */ export declare class IndexLayerClient { private readonly apiVersion; /** * HRN of the catalog. */ private hrn; /** * The ID of the layer. */ private layerId; /** * The [[OlpClientSettings]] instance. */ private settings; /** * Creates the [[IndexLayerClient]] instance with IndexLayerClientParams. * * @param params parameters for use to initialize IndexLayerClient. */ constructor(params: IndexLayerClientParams); /** * Fetches all partitions metadata from a layer that match a query from the [[IndexQueryRequest]] instance. * * @param IndexQueryRequest The [[IndexQueryRequest]] instance. * @param abortSignal A signal object that allows you to communicate with a request (such as the `fetch` request) * and, if required, abort it using the `AbortController` object. * * For more information, see the [`AbortController` documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). * * @returns A list of metadata for each of the partitions from the requested layer. */ getPartitions(request: IndexQueryRequest, abortSignal?: AbortSignal): Promise; /** * Fetches partition data using data handle. * * @param model The data model of partition metadata. * @param abortSignal A signal object that allows you to communicate with a request (such as the `fetch` request) * and, if required, abort it using the `AbortController` object. * * For more information, see the [`AbortController` documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). * * @return The data from the requested partition. */ getData(model: IndexApi.Index, abortSignal?: AbortSignal): Promise; /** * Fetch baseUrl and create requestBuilder for sending requests to the API Lookup Service. * @param builderType endpoint name is needed to create propriate requestBuilder * * @returns requestBuilder */ private getRequestBuilder; }