import { AnyType, NeverType, NonNever, NumberPrimitive, StringPrimitive, StructInstanceType, StructValueType, Type, UnionType, ValueType } from './types'; export declare function unionValueTypes(...types: NumberPrimitive[]): NumberPrimitive | UnionType | NeverType; export declare function unionValueTypes(...types: StringPrimitive[]): StringPrimitive | UnionType | NeverType; export declare function unionValueTypes(...types: StructValueType[]): StructValueType | UnionType | NeverType; export declare function unionValueTypes(...types: ValueType[]): ValueType | UnionType | NeverType | AnyType; declare type ClosedValueType = (T extends NumberPrimitive ? NumberPrimitive : never) | (T extends StringPrimitive ? StringPrimitive : never) | T; declare type CanBeAny = (T extends NumberPrimitive ? unknown : never) & (T extends StringPrimitive ? unknown : never) & (T extends StructValueType ? unknown : never); declare type UnderUnion = T | UnionType; declare type Closed = (T extends NumberPrimitive ? UnderUnion : never) | (T extends StringPrimitive ? UnderUnion : never) | (T extends StructInstanceType ? UnderUnion : T extends StructValueType ? UnderUnion : never) | (CanBeAny & AnyType) | (T extends UnionType ? UnderUnion> : never) | T; declare type Union2 = Closed> | Closed> | (A extends NeverType ? (B extends NeverType ? NeverType : never) : never); export declare function union(): NeverType; export declare function union(a: A): A; export declare function union(a: A, b: B): Union2; export declare function union(a: A, b: B, c: C): Union2; export declare function union(a: A, b: B, c: C, d: D): Union2; export declare function union(...types: T[]): Closed | NeverType; export {};