/// <reference types="react" />
export interface IFieldRuleRequired {
    required: true;
    message: string | JSX.Element;
}
export interface IFieldRulePattern {
    pattern: RegExp;
    message: string | JSX.Element;
}
export interface IFieldRuleLengthLimit {
    minLength: number;
    maxLength: number;
    message: string | JSX.Element;
}
export interface IFieldRuleCustom<V = string> {
    validator: (_rule: undefined, value: V, callback: (message: string | JSX.Element | undefined) => void) => void;
}
