import * as yup from 'yup'; import Reference from 'yup/lib/Reference'; import { Maybe } from 'yup/lib/types'; import { IIntlShapeRich } from './i18n/placeholder'; export declare type TReference = T | Reference; export declare type TReferenceProps> = { [key in keyof T]: T[key] extends Maybe ? TReferenceProps : TReference; }; export declare type TValidatorResult = (schema: S, intl: Intl) => S; export declare type TValidator = () => TValidatorResult; export interface IProps { /** * Wether to enable or not this validator. * @default true */ active?: boolean; /** * Defines a custom message ID for this validator. * @default undefined */ message?: string; }