/** * For positive numbers, does `x % mod` as usual, but extends this pattern to * negatives and non-integers. * * For example: * - `posMod(-4, 4) = 0` * - `posMod(-3, 4) = 1` * - `posMod(-2, 4) = 2` * - `posMod(-1, 4) = 3` * - `posMod(0, 4) = 0` * - `posMod(1, 4) = 1` * - `posMod(2, 4) = 2` * - `posMod(3, 4) = 3` * - `posMod(4, 4) = 0` * * @param x The number to mod. * @param mod The mod factor. */ export declare function posMod(x: number, mod: number): number;