import type Collection from "../core/Collection.js"; import type Item from "./Item.js"; import type { EventedAccessor } from "../core/Evented.js"; import type { LayerListModelEvents } from "./LayerListModel.js"; import type { Action, ItemModifier, State } from "./types.js"; import type { MapViewOrSceneView } from "../views/MapViewOrSceneView.js"; /** @internal */ export interface BasemapLayerListModelProperties extends Partial> {} /** @internal */ export interface BasemapLayerListModelEvents extends LayerListModelEvents {} /** * Provides list orchestration logic for basemap base and reference layers. * * @internal */ export default class BasemapLayerListModel extends EventedAccessor { /** @internal */ "@eventTypes": BasemapLayerListModelEvents; /** @internal */ constructor(properties?: BasemapLayerListModelProperties); /** * Specifies a function that accesses each base-layer [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/). * * @internal */ accessor baseItemCreatedFunction: ItemModifier | null | undefined; /** * A collection of [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/)s representing basemap base layers. * * @internal */ get baseItems(): Collection; /** * The current basemap title. * * @internal */ accessor basemapTitle: string | null | undefined; /** * Whether to provide an indication if a layer is being published. * The list item [Item.publishing](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/#publishing) property * is `false` if `checkPublishStatusEnabled` is `false`. * * @default false * @internal */ accessor checkPublishStatusEnabled: boolean; /** * Specifies whether to ignore the [Layer.listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property of layers. * * @default false * @internal * @see [Layer.listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) */ accessor listModeDisabled: boolean; /** * Specifies a function that accesses each reference-layer [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/). * * @internal */ accessor referenceItemCreatedFunction: ItemModifier | null | undefined; /** * A collection of [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/)s representing basemap reference layers. * * @internal */ get referenceItems(): Collection; /** * The view model's state. * * @default "disabled" * @internal */ get state(): State; /** * The view context for this view model. * * @internal */ accessor view: MapViewOrSceneView | null | undefined; /** * Moves a list item between base and reference collections. * * @param options - Move options describing source, target, and destination index. * @internal */ moveItem(options: { targetItem: Item | null | undefined; fromParentItem: Item | null | undefined; toParentItem: Item | null | undefined; from: "base" | "reference"; to: "base" | "reference"; newIndex: number; }): void; /** * Triggers the `trigger-action` event and executes * the given [action](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/). * * @param action - The action to execute. * @param item - An item associated with the action. * @internal */ triggerAction(action: Action, item: Item): void; }