import { FeatureLayerJSON, IItem, ValidationInfo } from '../../types'; /** * requires 90% of field aliases to be present to receive a full score */ export declare const FIELD_ALIASES_REQUIRED_PERCENT = 0.9; /** * Validates that feature layer fields have appropriate aliases. * * This function checks if the given item is a feature service and evaluates the presence of field aliases * for relevant fields within the provided feature layers. * * It returns a `ValidationInfo` object containing the validation result, messages, and scoring information. * * The scoring logic is as follows: * - 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 to check, the rule receives full score. * - If none of the relevant fields have aliases, a message is added to prompt adding aliases. * - If less than 80% of relevant fields have aliases, a message is added to prompt improvement and half score is given. * - If at least 80% of relevant fields have aliases, the rule receives full score. * * @param item - The item to validate, typically representing a feature layer item. * @param featureLayers - An array of JSON objects representing the feature layers published to this feature service to check for field aliases. * @returns A `ValidationInfo` object containing the validation result, messages, and scoring. */ export declare const checkFeatureServiceFieldAliases: (item: IItem, featureLayers: FeatureLayerJSON[]) => ValidationInfo;