import { FeatureLayerJSON, IItem, ValidationInfo } from '../../types'; /** * requires 90% of field descriptions to be present to receive a full score */ export declare const FIELD_DESCRIPTIONS_REQUIRED_PERCENT = 0.9; /** * Validates that relevant fields in the provided feature layers have descriptions. * * This function checks if the given item is a feature service and evaluates the presence of field descriptions * for relevant fields within the provided feature layers. It returns a `ValidationInfo` object containing * the validation result, score, messages, and scoring factors based on the percentage of fields with descriptions. * * Scoring logic: * - If the item is not a feature layer, the rule does not contribute to the final score. * - If there are no feature layers, a message is added and the result is returned. * - If there are no relevant fields, full score is given. * - If no relevant fields have descriptions, a message is added and score is zero. * - If less than 80% of relevant fields have descriptions, a message is added and half score is given. * - If at least 80% of relevant fields have descriptions, full score is given. * * @param item - The item to validate, expected to be a feature layer item. * @param featureLayers - An array of JSON objects representing the feature layers published to this feature service to check for field descriptions. * @returns A `ValidationInfo` object containing the validation result, score, messages, and scoring factors. */ export declare const checkFeatureServiceFieldDescriptions: (item: IItem, featureLayers: FeatureLayerJSON[]) => ValidationInfo;