import type { Callback } from '../../types/Callback.js'; declare global { interface ReadonlyArray { /** * Calls a defined callback function on each element of an array, and * returns the largest (using `>`) of all the callback return values, or * `null` if the array is empty. * * @param callback - A function that accepts up to three arguments. The * max method calls the callback function one time for each * element in the array. */ max(callback?: Callback): V | null; } interface Array { /** * Calls a defined callback function on each element of an array, and * returns the largest (using `>`) of all the callback return values, or * `null` if the array is empty. * * @param callback - A function that accepts up to three arguments. The * max method calls the callback function one time for each * element in the array. */ max(callback?: Callback): V | null; } }