import type { BinaryToDecimalParser } from "./binaryToDecimal"; import type { Decimal4bitToHex } from "./decimal4bitToHex"; import type { LengthOfString } from "./lengthOfString"; export type BinaryToHexParser = X extends `${infer F}${infer R}` ? LengthOfString<`${F}${C}`> extends 4 ? BinaryToHexParser}`>}`> : BinaryToHexParser : A; export type BinaryToHex = BinaryToHexParser;