import type { IGen } from "./api.js"; /** * Wraps given ES6 iterable to provide full {@link IGen} implementation. * * @remarks * Calling `.next()` on this wrapped instance will always succeed, even if the * original iterable already is exhausted (in which case the last valid value * will be repeated ad infinitum). * * The `initial` value is required to satisfy `.deref()` and the case where the * iterable doesn't provide a single value. * * @param src - * @param initial - */ export declare const iterable: (src: Iterable, initial: T) => $Iterable; export declare class $Iterable implements IGen { protected _iter: Iterator | null; protected _val: T; constructor(src: Iterable, initial: T); deref(): T; [Symbol.iterator](): Generator; next(): T; take(num: number, out?: T[], idx?: number): T[]; } //# sourceMappingURL=iterable.d.ts.map