import { type StandardSchemaV1 } from "../../Validate/standardSchema"; import type { ValidateCoreReturnType, ValidateType } from "../../Validate/type"; export type UnionExtractValidatedType = V extends (value: never) => { type: infer T; } ? ValidateType : never; /** * Creates a union validator that passes if any of the given validators pass * @param validators - Validator functions to compose as a union (logical OR) * @returns {Function} - Validator that checks if the value matches any of the validators */ export declare const union: ValidateCoreReturnType)[]>(...validators: [...Vs]) => ((value: UnionExtractValidatedType) => ValidateCoreReturnType>) & StandardSchemaV1, UnionExtractValidatedType>;