import type { SDivRem } from "./DivRem"; import type { Int } from "../aliases"; import type { _StrToNum } from "../internals/_StrToNum"; /** * Get the remainder of dividing two {@link Int}s. * * Sig: `(n: Int, m: Int) => Int` */ export type Rem = N extends N ? M extends M ? Int extends N | M ? Int : _StrToNum> : never : never; /** * Get the remainder of dividing two string representations of {@link Int}s. * @private */ export type SRem = SDivRem[1];