declare function _exports({ maxSize, minSize, items, getSize, getKey, }: Options): GroupedItems[]; export = _exports; /** * */ export type GroupedItems = { key: string; items: T[]; size: Record; }; export type Options = { /** * maximum size of a group */ maxSize: Record; /** * minimum size of a group (preferred over maximum size) */ minSize: Record; /** * a list of items */ items: Iterable; /** * function to get size of an item */ getSize: (arg0: T) => Record; /** * function to get the key of an item */ getKey: (arg0: T) => string; };