/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { AssignableArrayLike } from '../../mol-util/type-helpers.js'; export interface MakeBucketsOptions { sort?: boolean; start?: number; end?: number; } /** * Reorders indices so that the same keys are next to each other, [start, end) * Returns the offsets of buckets. So that [offsets[i], offsets[i + 1]) determines the range. */ export declare function makeBuckets(indices: AssignableArrayLike, getKey: (i: number) => K, options?: MakeBucketsOptions): ArrayLike;