export type TGetChunkedArrArgs = Parameters; export type TGetChunkedArrReturn = ReturnType; /** * Splits an array into chunks of a fixed size without mutating the source. * @template T * @param {T[]} arr Source array * @param {number} size Maximum number of items in each chunk * @returns {T[][]} Array of chunks * @throws {TypeError} getChunkedArr: arr must be an array * @throws {TypeError} getChunkedArr: size must be a positive integer * @example * getChunkedArr([ 1, 2, 3, 4, 5 ], 2); // [ [ 1, 2 ], [ 3, 4 ], [ 5 ] ] * @example * // Split products into rows of three cards for a responsive grid * const productRows = getChunkedArr(products, 3); */ export declare const getChunkedArr: (arr: T[], size: number) => T[][];