import { Schema } from './schema.js'; import { InferSchemaType, ValidationContext, ValidatorConfig } from '../types.js'; export type UnionValidatorConfig, ...Schema[]], TOutput> = ValidatorConfig & { validate?: { of?: TVariants; }; }; export declare class UnionSchema, ...Schema[]], TOutput = InferSchemaType, TInput = TOutput> extends Schema { private variants; constructor(config: UnionValidatorConfig); _validate(value: any, context: ValidationContext): Promise; _transform(value: any, context: ValidationContext): Promise; }