export declare type ArrayOrVarg = T[] | [T[]]; export declare type MaybeArray = T | T[]; export declare type Index = Record; export declare type Thunk = () => T; /** * Use this to make assertion at end of if-else chain that all members of a * union have been accounted for. */ export declare function casesHandled(x: never): never; declare type CustomDumper = (...args: any[]) => boolean; declare global { function registerDumper(detector: CustomDumper): void; } /** * Quick and dirty logging. Not for production. */ export declare function dump(...args: any[]): void; export declare function indexBy(items: T[], property: keyof T | ((item: T) => string)): Index; /** * Wrap a value in an array if it is not already an array. */ export declare function arrayify(x: T): T extends Array ? T : T[]; export declare function lookupOrThrow(index: Index, key: string): T; export {}; //# sourceMappingURL=utils.d.ts.map