import { BaseField } from '../../BaseField';
import { FormContext } from '../../form/FormContext';
import { Values } from '../../form/Values';
import { InterceptorConfig } from '../InterceptorConfig';
import { InterceptorHandler } from '../InterceptorHandler';
import { InterceptorHandlerResponse } from '../InterceptorHandlerResponse';
export declare class ValidatorLength extends InterceptorConfig {
  static id: string;
  min?: number;
  max?: number;
  constructor(min: number, max?: number);
}
export declare class ValidatorLengthHandler extends InterceptorHandler {
  private config;
  constructor(config: ValidatorLength);
  run(context: FormContext, _: Values, field: BaseField, value: any): InterceptorHandlerResponse;
}
export declare function validateArray(context: FormContext, field: BaseField, value: any, min?: number, max?: number): InterceptorHandlerResponse;
export declare function validateString(context: FormContext, field: BaseField, value: any, min?: number, max?: number): InterceptorHandlerResponse;
