/** * Partition unordered data into buckets of similar total weight * * @example * ```typescript * partition([1, 2, 3], 2, (i) => i)) // [[3], [2, 1]]; * ``` * @param data * @param bucketsCount * @param predicate maps a data items to weight * @returns buckets of similar total weight (sorted by weights, descending) */ export declare function partition(data: T[], bucketsCount: number, predicate: (item: T) => number): T[][]; //# sourceMappingURL=partition.d.ts.map