import type PortalItem from "../../portal/PortalItem.js"; import type { Clonable } from "../../core/Clonable.js"; import type { JSONSupportMixin } from "../../core/JSONSupport.js"; import type { PortalItemProperties } from "../../portal/PortalItem.js"; /** Properties used to construct a [PortalItemData](https://developers.arcgis.com/javascript/latest/references/core/layers/support/PortalItemData/). */ export interface PortalItemDataProperties { /** * The portal item that provides the layer's data source. The item's content must be compatible * with the consuming layer, such as Parquet data for [ParquetLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer/) or a geospatial PDF * for [GeospatialPDFLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/). Set this to a [PortalItem](https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/) instance or its properties; * a plain object such as `{ id: "item-id" }` is autocast to a PortalItem. * Set the item's [portal](https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/#portal) when referencing content outside the default portal. */ portalItem?: PortalItemProperties; } /** * Provides an ArcGIS [portal item](https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/) as the data source for a * [ParquetLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer/) or a [GeospatialPDFLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/). * * @since 5.2 * @beta * @example * ```ts * import ParquetLayer from "@arcgis/core/layers/ParquetLayer.js"; * import PortalItemData from "@arcgis/core/layers/support/PortalItemData.js"; * * // Replace the placeholder ID with a portal item containing Parquet data. * const layer = new ParquetLayer({ * data: new PortalItemData({ * portalItem: { * id: "6ab6f959c1684eb5a54db91644a89747", * }, * }), * }); * ``` * @example * ```ts * import GeospatialPDFLayer from "@arcgis/core/layers/GeospatialPDFLayer.js"; * import PortalItemData from "@arcgis/core/layers/support/PortalItemData.js"; * * // Replace the placeholder ID with a portal item whose URL resolves to a geospatial PDF. * const layer = new GeospatialPDFLayer({ * data: new PortalItemData({ * portalItem: { * id: "0d8613492b1e4598a5edb111f05be7fd", * }, * }), * }); * ``` */ export default class PortalItemData extends PortalItemDataSuperclass { constructor(properties?: PortalItemDataProperties); /** * The portal item that provides the layer's data source. The item's content must be compatible * with the consuming layer, such as Parquet data for [ParquetLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer/) or a geospatial PDF * for [GeospatialPDFLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/). Set this to a [PortalItem](https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/) instance or its properties; * a plain object such as `{ id: "item-id" }` is autocast to a PortalItem. * Set the item's [portal](https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/#portal) when referencing content outside the default portal. */ get portalItem(): PortalItem; set portalItem(value: PortalItemProperties); /** The type of data source. */ get type(): "portal-item"; } declare const PortalItemDataSuperclass: typeof Clonable & typeof JSONSupportMixin