import type { TransformFunction } from 'r-assign'; import type { InferLiterals, Literal, Literals, TypeGuard } from 'r-assign/lib'; /** * Extract literal values * @deprecated will be removed in version 2.0, use `getType()` instead */ declare function getLiteral( literal: L ): TransformFunction; /** * Extract union of literal values * @deprecated will be removed in version 2.0, use `getType()` instead */ declare function getLiteralOf>( literals: T, initial: InferLiterals ): TransformFunction>; /** * Check for literal values */ declare function isLiteral(literal: L): TypeGuard; /** * Check for union of literal values */ declare function isLiteralOf>( literals: T ): TypeGuard>; /** * Extract and validate literal values * @deprecated will be removed in version 2.0, use `parseType()` instead */ declare function parseLiteral( literal: L ): TransformFunction; /** * Extract and validate union of literal values * @deprecated will be removed in version 2.0, use `parseType()` instead */ declare function parseLiteralOf>( literals: T ): TransformFunction>; export { getLiteral, getLiteralOf, isLiteral, isLiteral as literal, isLiteralOf, isLiteralOf as literals, parseLiteral, parseLiteralOf }; export type { Literal };