import { type FieldContext } from '@vinejs/compiler/types'; /** * Enum rule validates that a field's value is one of the pre-defined choices. * * The choices can be provided as a static array or as a function that returns * an array, allowing for dynamic choice lists based on the field context. * * @example * vine.string().use(enumRule({ choices: ['red', 'blue', 'green'] })) * * @example * vine.string().use(enumRule({ * choices: (field) => field.data.availableColors * })) */ export declare const enumRule: (options: { choices: readonly any[] | ((field: FieldContext) => readonly any[]); }) => import("../../types.ts").Validation<{ choices: readonly any[] | ((field: FieldContext) => readonly any[]); }>;