/** * Validates an components value against a given regex pattern. * * An empty string for value is considered valid as not all components * with pattern validation have to be required. * @param {*} value The value to validate. * @param {string} label The label to use in the default error message. * @param {string} pattern The regex pattern to validate against. * @param {array} customErrors The array of custom errors for the component. * @returns An error if the value doesn't match the regex pattern. */ declare const validateRegex: (value: any, label: any, pattern: any, customErrors: any) => any; export default validateRegex;