import type { TypeOfList } from '../types'; import type { List } from '@sdkset/types'; /** * 返回一个数组,数组由给定数组拆分成多个`size`长度的区块组成。 * 如果给定数组无法被分割成全部等长的区块,那么最后剩余的元素将组成一个区块。 * * @example * chunk([1, 2, 3, 4, 5], 2) * => [[1, 2], [3, 4], [5]] * * @param array 给定数组 * @param size 区块大小 */ export declare function chunk(array: V, size?: number): TypeOfList[][];