/** * Calculates the modulo of two numbers, ensuring a positive result. * This function differs from the JavaScript % operator by always returning a non-negative result. * * @param n - The dividend (number to be divided) * @param d - The divisor (number to divide by) * @returns The positive modulo result * * @example * console.log(modulo(5, 3)); // Output: 2 * console.log(modulo(-5, 3)); // Output: 1 */ export declare const modulo: (n: number, d: number) => number;