import { IItem, ValidationInfo } from '../../types'; import { WebmapData } from '../../types/item-data'; type CheckWebmapLayersOptions = { /** * The JSON data of the web map that contains the operational layers and basemap layers to be checked. */ webmapData: WebmapData; /** * Array of items representing the layers in the web map. */ layerItems: IItem[]; }; /** * Validates that a web map does not contain deprecated or inaccessible layers. * * @param item - The ArcGIS Item object representing the web map to validate * @param options - Configuration options for the validation check * @param options.webmapData - The web map data containing operational and basemap layers * @param options.layerItems - Array of ArcGIS Item objects representing the layers in the web map * @returns ValidationInfo object containing the validation result, score, and any messages about deprecated or inaccessible layers * * @remarks * This validation rule checks: * - Whether the item is a valid web map * - Whether the web map contains any layers * - Whether the layer count exceeds the recommended maximum of 15 layers * - Whether any layers are marked as deprecated * - Whether any layers are inaccessible (not found in the layer items) * - Whether any layers are not publicly accessible * * If any issues are found, the validation will not award points. A binary check that either passes or fails. * * @example * const result = checkWebmapLayers(webmapItem, { webmapData, layerItems }); * if (result.messages.length > 0) { * console.log('Web map has layer issues:', result.messages); * } */ export declare const checkWebmapLayers: (item: IItem, options: CheckWebmapLayersOptions) => ValidationInfo; export {};