/** * @ignore */ export declare function padNoAnsi(str: string, length: number, place: 'end' | 'start'): string; /** * Group an array by a function that returns the key * * @ignore */ export declare function groupBy(objs: A[], f: (a: A) => B): Record; /** * A better typed version of `Object.entries` * * @ignore */ export declare function entries>(obj: Obj): { [key in keyof Obj]: [key, Obj[key]]; }[keyof Obj][]; /** * Enumerate over a list, to get a pair of [index, value] * * @ignore */ export declare function enumerate(arr: T[]): Generator<[number, T]>; /** * Array#flatMap polyfill * * @ignore */ export declare function flatMap(xs: A[], fn: (a: A) => B[]): B[]; /** * Flatten an array * * @ignore */ export declare function flatten(xs: A[][]): A[]; /** * Either the provided `T` or an empty object */ export declare type AllOrNothing = T | { [key in keyof T]?: never; };