export interface ValidatorSettingsProps { /** * Limit of length or number value */ limit?: null | number | string; /** * message of error */ message?: null | string; [key: string]: any; } export declare type ValidatorWithArray = ( /** * Validation value */ writtenValue: string | number | any[], /** * Validator settings */ ValidatorSettingsProps: ValidatorSettingsProps) => boolean; export declare type Validator = ( /** * Validation value */ writtenValue: string | number, /** * Validator settings */ ValidatorSettingsProps: ValidatorSettingsProps) => boolean; export declare type SimpleValidator = ( /** * Validation value */ writtenValue: string | number) => boolean; export declare type SimpleValidatorWithArray = ( /** * Validation value */ writtenValue: string | number | any[]) => boolean; export interface NumberValidatorRulesProps { shouldLockNegativeNumber?: boolean; shouldLockFloatNumber?: boolean; allowableSymbols?: string[]; customRegExp?: RegExp; isLiveValidator?: boolean; [key: string]: any; } export interface CommonErrorData { [key: string]: any; } export declare type ErrorDataHandler = (commonErrorData: T, propsToUpdate: Partial) => void; export declare type NumberValidator = (writtenValue: string | number | null, numberRules?: NumberValidatorRulesProps) => boolean;