import { FormFieldStatusMeta } from './form-field-validation-rule';
import { EvaluateResultTranslation } from './validation-rule';
import { InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract';
import { SelectSourceItem, SelectType, SelectValueType } from '../../../components/vega-input-select/types';
/**
 * A rule that checks if the value exists in the source or not
 *
 * @augments {InternalFormFieldValidationRule<SelectValueType<SelectType>>}
 */
export declare class InputSelectValueInSourceRule extends InternalFormFieldValidationRule<SelectValueType<SelectType>> {
  private readonly inputSelectSourceGetter;
  /**
   * It creates a new instance of the class with the given config.
   *
   * @param {() => SelectSourceItem[]} inputSelectSourceGetter - The input select source getter function
   */
  constructor(inputSelectSourceGetter: () => SelectSourceItem[]);
  /**
   * 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;
  /**
   * check if the value exists in the source
   *
   * @param {SelectValueType<SelectType>} input - The input to be evaluated.
   * @returns {EvaluateResultTranslation} - The result of the evaluation.
   */
  evaluate(input: SelectValueType<SelectType>): EvaluateResultTranslation;
  /**
   * 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;
  /**
   * It returns true if the input is a string or an array of two strings, and each string is a valid string
   *
   * @param {unknown} input - The input value to be validated.
   * @returns {boolean} A boolean value.
   */
  private isAcceptedInputType;
  /**
   * Generate an invalid result
   *
   * @param {string} message Error message
   * @returns {EvaluateResultTranslation} invalid validation result
   */
  private invalidResult;
  /**
   * Generate a valid result
   *
   * @returns {EvaluateResultTranslation} invalid validation result
   */
  private validResult;
}
