import type { PropOptionsGenerator } from '../types'; import type { Validator } from '../validators'; /** * Allows any of the specified allowed values (validated at runtime and compile time). * * @template T - can be used to adjust the inferred type at compile time, this is usually not necessary. * @param allowedValues - The allowed values. * @param validator - Optional function for further runtime validation; should return `undefined` if valid, or an error string if invalid. */ export declare const oneOfProp: (allowedValues: T, validator?: Validator) => PropOptionsGenerator;