import { BaseValidator } from './base'; import type { EnumValidatorType, ValidationNames } from '../types/index'; export declare function enum_(allowedValues: readonly string[]): EnumValidator; export declare class EnumValidator extends BaseValidator implements EnumValidatorType { name: ValidationNames; readonly allowedValues: string[]; constructor(allowedValues: readonly string[]); getAllowedValues(): readonly string[]; custom(fn: (value: string) => boolean, message: string): this; }