/** * Hook that chunks an array into smaller arrays of a specified size. * * @template T - The type of elements in the array. * @param {T[]} raw - The original array to be chunked. * @param {number} chunkSize - The size of each chunk. * @returns {T[][]} - An array of smaller arrays, each containing elements from the original array. * * @example * ```ts * import { useChunked } from "@i-vresse/haddock3-ui/useChunked"; * const raw = [1, 2, 3, 4, 5, 6, 7, 8, 9]; * const chunkSize = 3; * const chunks = useChunked(raw, chunkSize); * // chunks = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] * ``` */ export declare function useChunked(raw: T[], chunkSize: number): T[][]; /** * Chunks an array into smaller arrays of a specified size. * * @template T - The type of elements in the array. * @param {T[]} raw - The original array to be chunked. * @param {number} chunkSize - The size of each chunk. * @returns {T[][]} - An array of smaller arrays, each containing elements from the original array. * */ export declare function chunk(raw: T[], chunkSize: number): T[][]; //# sourceMappingURL=useChunked.d.ts.map