import type { TransformFunction } from 'r-assign'; import type { InferUnion, TypeGuard, Union } from 'r-assign/lib'; /** * Extract union type values * @deprecated will be removed in version 2.0, use `getType()` instead */ declare function getUnionOf( union: U, initial: InferUnion ): TransformFunction>; /** * Check for union type values * @note Does not accept `isOptional*` type guard as it is invalid syntax */ declare function isUnionOf( union: U ): TypeGuard>; /** * Extract and validate union type values * @deprecated will be removed in version 2.0, use `parseType()` instead */ declare function parseUnionOf( union: U ): TransformFunction>; export { getUnionOf, isUnionOf, isUnionOf as union, parseUnionOf }; export type { InferUnion, Union };