import type { Arr, Chunk } from '@toolbox-ts/types/defs/array'; /** * Splits an array into chunks of a specified size. * - The last chunk may be smaller if there are not enough elements. * * @throws `TypeError` if size is not a positive integer. * * @pure * * @example * ```ts * chunk([1, 2, 3, 4, 5], 2) * // [[1, 2], [3, 4], [5]] * * chunk(['a', 'b', 'c', 'd'], 3) * // [['a', 'b', 'c'], ['d']] * ``` */ export declare function chunk(arr: T, size: number): Chunk;