export { groupBy, repeat }; export type { Tuple }; type Tuple = number extends L ? T[] : R['length'] extends L ? R : Tuple; declare const groupBy: (self: Iterable, f: (a: A) => B) => { [K in B]?: A[] | undefined; }; declare const repeat: (length: L) => (a: A) => Tuple;