import { IIterator } from './iter'; /** * Create an empty iterator. * * @returns A new iterator which yields nothing. * * #### Example * ```typescript * import { empty, toArray } from '@lumino/algorithm'; * * let stream = empty(); * * toArray(stream); // [] * ``` */ export declare function empty(): IIterator; /** * An iterator which is always empty. */ export declare class EmptyIterator implements IIterator { /** * Get an iterator over the object's values. * * @returns An iterator which yields the object's values. */ iter(): IIterator; /** * Create an independent clone of the iterator. * * @returns A new independent clone of the iterator. */ clone(): IIterator; /** * Get the next value from the iterator. * * @returns The next value from the iterator, or `undefined`. */ next(): T | undefined; } //# sourceMappingURL=empty.d.ts.map