import { type IsEqual } from "../common"; import { type MaxElements } from "./types"; /** * Checks whether an array has at most a given length. * * **Supported call styles:** * - Classic: `maxElements(array, maxLength)` → returns a boolean * - Curried: `maxElements(maxLength)` → returns a function waiting for the array * * The input array is not mutated. * * ```ts * A.maxElements( * [1, 2, 3], * 2, * ); // false * * A.maxElements( * [1, 2], * 2, * ); // true * * pipe( * ["alpha", "beta"], * A.maxElements(3), * ); // true * * ``` * * @see [`A.minElements`](https://utils.duplojs.dev/en/v1/api/array/minElements) For minimum length checks * @see https://utils.duplojs.dev/en/v1/api/array/maxElements * * @namespace A * */ export declare function maxElements(maxLength: GenericLength): (array: GenericArray) => array is GenericArray & (IsEqual extends true ? unknown : MaxElements); export declare function maxElements(array: GenericArray, maxLength: GenericLength): array is GenericArray & (IsEqual extends true ? unknown : MaxElements);