import type { SchemaFnOptions } from '../types.js'; /** * Enforces value to be one of the defined choices */ export declare function oneOf(choices: readonly K[], options?: SchemaFnOptions): (key: string, value?: string) => K; export declare namespace oneOf { var optional: (choices: readonly K[], options?: SchemaFnOptions) => (key: string, value?: string) => K | undefined; var optionalWhen: (condition: boolean | ((key: string, value?: string) => boolean), choices: readonly K[], options?: SchemaFnOptions) => (key: string, value?: string) => K | undefined; }