import { IRequestOptions } from "@esri/arcgis-rest-request"; import { operations } from "./openapi-types.js"; import { IconOptions } from "./iconOptions.js"; type queryParams = Pick; type successResponse = operations["placeIdGet"]["responses"]["200"]["content"]["application/json"]; /** * The response format for {@linkcode getPlaceDetails}. */ export interface IGetPlaceResponse extends successResponse { } /** * Options for {@linkcode getPlaceDetails}. */ export interface IGetPlaceOptions extends Omit, queryParams { placeId: string; /** * Override the URL. This should be the full URL to the API endpoint you want to call. Used internally by Esri staff for testing. * @private */ endpoint?: string; icon?: IconOptions; } /** * Returns a single place, including additional details, such as: * * - contact details * - address * - price information * - user rating * - opening hours * * This endpoint can be used to fetch additional details for a specific * place, returned from a places search request. * * Note that some fields, such as opening hours, are not available for * every place. Where a field is not available it will be omitted from the * response and you will not be charged for this data. * * ```js * import { getPlaceDetails } from "@esri/arcgis-rest-places"; * import { ApiKeyManager } from "@esri/arcgis-rest-request"; * * const place = getPlaceDetails({ * placeId: "e78051acc722c55ab11ba930d8dd7772", * authentication: ApiKeyManager.fromKey("YOUR_API_KEY") * }); * * console.log(place); * ``` */ export declare function getPlaceDetails(requestOptions: IGetPlaceOptions): Promise; export {};