import { ValidationDefination } from 'indicative-compiler'; /** * Enforces the field value to pass a custom regular expression. * * ```ts * import { validations } from 'indicative/validator' * * const rules = { * username: [ * validations.regex(['^[a-z]+']) * ] * } * * // or * const rules = { * username: [ * validations.regex([new RegExp('^ [a-z]+')]) * ] * } * ``` */ declare const validation: ValidationDefination; export { validation as default };