import type Basemap from "../../Basemap.js"; import type Accessor from "../../core/Accessor.js"; import type EsriError from "../../core/Error.js"; import type SpatialReference from "../../geometry/SpatialReference.js"; import type { BasemapCompatibilityFunction } from "../types.js"; import type { IdentifiableMixin, IdentifiableMixinProperties } from "../../core/Identifiable.js"; import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js"; /** @since 5.2 */ export interface BasemapItemProperties extends IdentifiableMixinProperties, Partial> {} /** @since 5.2 */ export type BasemapItemState = "ready" | "loading" | "error"; /** * Represents one of the basemaps in [BasemapGalleryModel.items](https://developers.arcgis.com/javascript/latest/references/core/basemapGallery/BasemapGalleryModel/#items). * * @since 5.2 * @see [BasemapGalleryModel.items](https://developers.arcgis.com/javascript/latest/references/core/basemapGallery/BasemapGalleryModel/#items) */ export default class BasemapItem extends BasemapItemSuperclass { /** @since 5.2 */ constructor(properties?: BasemapItemProperties); /** * The item's associated basemap. * * @since 5.2 */ accessor basemap: Basemap; /** * Function used to determine whether a basemap is compatible with the current view. * This is mostly needed for SceneView. * * @since 5.2 */ accessor compatibilityFunction: BasemapCompatibilityFunction | null; /** * The Error object returned if an error occurred. * * @since 5.2 */ get error(): EsriError | null | undefined; /** * The spatial reference of the item's basemap. * * @since 5.2 */ get spatialReference(): SpatialReference | null | undefined; /** * The item's state. * * @since 5.2 */ get state(): BasemapItemState; /** * The view associated with this item. * * @since 5.2 */ accessor view: MapViewOrSceneView | null | undefined; /** * Destroys the basemap item. * * @since 5.2 */ destroy(): void; /** * Refreshes the item's state. * * @since 5.2 */ refresh(): void; } declare const BasemapItemSuperclass: typeof Accessor & typeof IdentifiableMixin