import type { Length } from "./length"; import type { LengthOfString } from "./lengthOfString"; import type { Shift } from "./shift"; import type { StringReverse } from "./stringReverse"; export type BinaryToDecimalParser = X extends `${infer F}${infer R}` ? LengthOfString extends 8 ? F extends "1" ? `-${BinaryToDecimalParser, C, A, true>}` : BinaryToDecimalParser, C, A, FL> : FL extends false ? F extends "1" ? BinaryToDecimalParser : BinaryToDecimalParser : F extends "1" ? BinaryToDecimalParser : BinaryToDecimalParser : FL extends true ? Length : Length>; export type BinaryToDecimal = BinaryToDecimalParser;