import { IRequestOptions } from "@esri/arcgis-rest-request"; import { operations } from "./openapi-types.js"; import { IconOptions } from "./iconOptions.js"; type queryParams = operations["categoriesCategoryIdGet"]["parameters"]["query"]; type successResponse = operations["categoriesCategoryIdGet"]["responses"]["200"]["content"]["application/json"]; /** * The response format for {@linkcode getCategory}; */ export interface IGetCategoryResponse extends successResponse { } /** * Options for {@linkcode getCategory}. */ export interface IGetCategoryOptions extends Omit, queryParams { categoryId: string; icon?: IconOptions; /** * 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; } /** * Returns details about a single category by Id. * * ```js * import { getCategories } from "@esri/arcgis-rest-places"; * import { ApiKeyManager } from "@esri/arcgis-rest-request"; * * const response = getCategory({ * categoryId: "10000", * authentication: ApiKeyManager.fromKey("YOUR_API_KEY") * }); * * console.log(response); * ``` **/ export declare function getCategory(requestOptions: IGetCategoryOptions): Promise; export {};