import { Next } from '../Iteration/Next'; import { Prepend } from './Prepend'; import { IterationOf } from '../Iteration/IterationOf'; import { Iteration } from '../Iteration/Iteration'; import { Cast } from '../Any/Cast'; import { List } from './List'; import { Extends } from '../Any/Extends'; import { Pos } from '../Iteration/Pos'; /** * @hidden */ declare type __Repeat> = { 0: __Repeat, Next>; 1: L; }[Extends, N>]; /** * @hidden */ export declare type _Repeat = __Repeat extends infer X ? Cast : never; /** * Fill a [[List]] with `N` times `A` * @param A to fill with * @param N to repeat it * @param L (?=`[]`) to be filled * @returns [[List]] * @example * ```ts * ``` */ export declare type Repeat = N extends unknown ? L extends unknown ? _Repeat : never : never; export {};