import type { BaseTextInputProps, ValidationResult } from '../types'; /** * 校验文本输入值 * * 按照优先级执行校验规则: * 1. 必填校验(required) * 2. 最小长度校验(minLength) * 3. 最大长度校验(maxLength) * 4. 正则校验(pattern) * 5. 自定义校验函数(validator) * * @param value 待校验的值 * @param props 校验配置 * @returns 校验结果对象,包含 isValid 和 errors * * @example * validateValue('hello', { required: true, minLength: 3 }) * // { isValid: true, errors: [] } * * validateValue('', { required: true }) * // { isValid: false, errors: ['此字段为必填项'] } */ export declare function validateValue(value: string, props: BaseTextInputProps): ValidationResult;