import type { VALIDATOR_TYPE as AUTOCOMPLETE_VALIDATOR } from './autocompleteValidator'; import type { VALIDATOR_TYPE as DATE_VALIDATOR } from './dateValidator'; import type { VALIDATOR_TYPE as DROPDOWN_VALIDATOR } from './dropdownValidator'; import type { VALIDATOR_TYPE as INTL_DATE_VALIDATOR } from './intlDateValidator'; import type { VALIDATOR_TYPE as INTL_TIME_VALIDATOR } from './intlTimeValidator'; import type { VALIDATOR_TYPE as MULTI_SELECT_VALIDATOR } from './multiSelectValidator'; import type { VALIDATOR_TYPE as NUMERIC_VALIDATOR } from './numericValidator'; import type { VALIDATOR_TYPE as TIME_VALIDATOR } from './timeValidator'; declare const hasItem: (name: string) => boolean, getNames: () => string[], getValues: () => unknown[]; type CellValidator = (value: unknown, callback: (valid: boolean) => void) => void; /** * Retrieve validator function. * * @param {string} name Validator identification. * @returns {CellValidator} Returns validator function. */ declare function _getItem(name: string | CellValidator): CellValidator; /** * Register validator under its alias. * * @param {string|CellValidator} name Validator's alias or validator function with its descriptor. * @param {CellValidator} [validator] Validator function. */ declare function _register(name: string | (CellValidator & { VALIDATOR_TYPE: string; }), validator?: CellValidator): void; export { _register as registerValidator, _getItem as getValidator, hasItem as hasValidator, getNames as getRegisteredValidatorNames, getValues as getRegisteredValidators, }; /** * All built-in validator type names. */ export type ValidatorType = typeof AUTOCOMPLETE_VALIDATOR | typeof DATE_VALIDATOR | typeof DROPDOWN_VALIDATOR | typeof INTL_DATE_VALIDATOR | typeof INTL_TIME_VALIDATOR | typeof MULTI_SELECT_VALIDATOR | typeof NUMERIC_VALIDATOR | typeof TIME_VALIDATOR | string;