declare global { const StopIteration: (object & { readonly __brand__?: unique symbol }) | undefined; } declare function getStopIterationIterator(origIterator: { next(): IteratorResult }): Iterator; export = getStopIterationIterator;