declare type Flattened = T extends Array ? Flattened : T; /** * Returns a new list by pulling every item out of it (and all its sub-arrays) * and putting them in a new array, depth-first. Stolen from Ramda. */ export declare function flatten(list: T): Flattened[]; export {};