import Type from './Type'; import Validation, { IdentifierPath } from '../Validation'; import RuntimeTypeErrorItem from '../errorReporting/RuntimeTypeErrorItem'; export default class UnionType extends Type { typeName: string; readonly types: Type[]; private _determinantProperty; constructor(types: Type[]); get determinantProperty(): [string | number | symbol, Map>] | null; errors(validation: Validation, path: IdentifierPath, input: any): Iterable; accepts(input: any): input is T; get acceptsSomeCompositeTypes(): boolean; toString(options?: { formatForMustBe?: boolean; }): string; }