import { List } from './List'; import { _UnNest } from './UnNest'; import { Cast } from '../Any/Cast'; import { Equals } from '../Any/Equals'; import { Iteration } from '../Iteration/Iteration'; import { IterationOf } from '../Iteration/IterationOf'; import { Extends } from '../Any/Extends'; import { Next } from '../Iteration/Next'; import { Or } from '../Boolean/Or'; import { Boolean } from '../Boolean/_Internal'; /** * @hidden */ declare type __Flatten> = { 0: __Flatten<_UnNest, L, strict, limit, Next>; 1: L; }[Or, Extends>]; /** * @hidden */ export declare type _Flatten = __Flatten> extends infer X ? Cast : never; /** * Remove all dimensions of `L` (10 max) * @param L to un-nest * @param strict (?=`1`) `0` to not preserve tuples * @param limit (?=`string`) to stop un-nesting at * @returns [[List]] * @example * ```ts * ``` */ export declare type Flatten = L extends unknown ? _Flatten : never; export {};