import { LazyIterator } from './iterator.js'; /** * A lazy iterator that repeats the given value for given times. */ declare class LazyReplicateIterator extends LazyIterator { source: T; count: number; protected currentPos: number; constructor(source: T, count: number); next(): { done: true; value: any; } | { done: false; value: T; }; } declare module "./iterator" { interface LazyIteratorFactory { /** * Creates a lazy iterator that repeats the given value for given times. * @param source The value to repeat * @param count The number of times to repeat the value */ replicate(source: T, count: number): LazyReplicateIterator; } } export { LazyReplicateIterator };