import { Last } from './Last'; import { Prepend } from '../List/Prepend'; import { Exclude } from './Exclude'; import { List } from '../List/List'; import { Cast } from '../Any/Cast'; import { Extends } from '../Any/Extends'; /** * @hidden */ declare type _ListOf> = { 0: _ListOf, Prepend>; 1: LN; }[Extends<[U], [never]>]; /** * Transform a [[Union]] into a [[List]] * (⚠️ it might not preserve order) * @param U to transform * @returns [[List]] * @example * ```ts * ``` */ export declare type ListOf = _ListOf extends infer X ? Cast : never; export {};