import { FetchOptions } from "@here/olp-sdk-core"; /** * Prepares information for calls to get data from the HERE Blob Service. */ export declare class DataRequest { private dataHandle?; private partitionId?; private billingTag?; private fetchOption; /** * Gets a data handle for the request. * * The data handle identifies a specific blob so that you can get the contents of that blob. * * @return The `DataHandle` string. */ getDataHandle(): string | undefined; /** * Sets the provided data handle. * * @param dataHandle The `DataHandler` string. * @return The updated [[DataRequest]] instance that you can use to chain methods. */ withDataHandle(dataHandle: string): DataRequest; /** * Gets a partition ID for the request. * * @return The `partitionID` string. */ getPartitionId(): string | undefined; /** * Sets the provided partition ID. * * @param partitionId The `partitionID` string. * @returns The updated [[DataRequest]] instance that you can use to chain methods. */ withPartitionId(partitionId: string): DataRequest; /** * An optional free-form tag that is used for grouping billing records together. * * If supplied, it must be 4–16 characters long and contain only alphanumeric ASCII characters [A–Za–z0–9]. * * @param tag The `BillingTag` string. * @return The updated [[DataRequest]] instance that you can use to chain methods. */ withBillingTag(tag: string): DataRequest; /** * Gets a billing tag to group billing records together. * * @return The `BillingTag` string. */ getBillingTag(): string | undefined; /** * Sets the fetch option that you can use to set the source from * which data should be fetched. * * @see `getFetchOption()` for information on usage and format. * * @param option The `FetchOption` enum. * * @return A reference to the updated `DataRequest` instance. */ withFetchOption(option: FetchOptions): DataRequest; /** * Gets the fetch option that controls how requests are handled. * * The default option is `OnlineIfNotFound`. It queries the network if * the requested resource is not in the cache. * * @return The fetch option. */ getFetchOption(): FetchOptions; }