import { FormFieldStatusMeta } from './form-field-validation-rule';
import { DatePickerModeType, DatePickerValueType } from '../../../components/vega-date-picker/types';
import { TimeFormat } from '../../../types/general';
import { EvaluateResultTranslation } from './validation-rule';
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
/**
 * A rule that checks if start time is before than end time
 */
export declare class TimeRangeRule extends InternalFormFieldValidationRule<DatePickerValueType<DatePickerModeType>> {
  private readonly config;
  /**
   * It creates a new instance of the class with the given config.
   *
   * @param {{ timeFormat: TimeFormat }} config - config including the timeFormat for time value
   * @param {TimeFormat} config.timeFormat - The timeFormat for time value
   */
  constructor(config: {
    timeFormat: TimeFormat;
  });
  /**
   * If the input is accepted and the status is not disabled and visible, then return true
   *
   * @param {unknown} input - The input to be evaluated.
   * @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
   * @returns {boolean} A boolean value.
   */
  canEvaluate(input: unknown, status?: FormFieldStatusMeta): boolean;
  /**
   * If the field is not disabled, visible, and has been touched or modified, then show the error
   *
   * @param {FormFieldStatusMeta} status - FormFieldStatusMeta
   * @returns {boolean} A boolean value.
   */
  shouldShowError(status: FormFieldStatusMeta): boolean;
  /**
   * Check if the start time is before than end time
   *
   * @param {string | string[]} input - The value of the time picker.
   * @returns  {EvaluateResultTranslation} - The result of the evaluation.
   */
  evaluate(input: DatePickerValueType<'range'>): EvaluateResultTranslation;
  /**
   * If the input is an array of two strings, and each string is a valid date, then return true.
   *
   * @param {unknown} input - The input value to be validated.
   * @returns {boolean} A boolean value.
   */
  private isAcceptedInputType;
  /**
   * check if start time before end time, the 12-hour time should convert to 24-hour time format, the safari, 'fire fox' do not support 12-hour
   *
   * @param {string} startTime time string
   * @param  {string} endTime time string
   * @returns {boolean} boolean value
   */
  private isStartTimeBeforeEndTime;
}
