import { IItem, ValidationInfo } from '../../types'; /** * Validation function to check if an item has a valid extent and is not set to the world extent * * The socring logic is as follows: * - If the item does not have an extent or the extent is not an array of two arrays, a message is added and the it receives no score. * - If the extent is not a valid extent object (not an array of two coordinate pairs, or coordinates are out of range), a message is added and receives no score. * - If the extent is valid, the rule receives a scoring factor for having a valid extent. * - If the extent is not set to the world extent, the rule receives an additional scoring factor for having an appropriate extent. * * @param item - item to validate * @returns validation info object * * @example * ```ts * import { validateItemExtent } from 'living-atlas-content-validator'; * * const item = { * extent: [[-10, -10], [10, 10]] * }; * * const result = validateItemExtent(item); * console.log(result); * ``` * */ export declare const checkItemExtent: (item: IItem) => ValidationInfo;