/** * @file The iterator helpers in this package's three-export shape. * The shims live beside this file as free functions taking the iterator as * their first argument, because that is how a Node-18 caller has to reach * them - there is no method on the prototype to call. This file pairs each * with the native method where the engine has one. * Not shimmed, and why: * * - `chunks`, `windows`, `join`, `includes` are proposals no Node ships, so a * shim would invent behavior rather than fill a gap. * - `Iterator.prototype[Symbol.dispose]` is `version_added: false` in upstream * compat data for Node, so there is nothing to match yet. */ import { iteratorEveryShim, iteratorFindShim, iteratorForEachShim, iteratorReduceShim, iteratorSomeShim, iteratorToArrayShim } from './eager.mts'; import { iteratorDropShim, iteratorFilterShim, iteratorFlatMapShim, iteratorMapShim, iteratorTakeShim } from './lazy.mts'; import { iteratorConcatShim, iteratorFromShim } from './statics.mts'; /** * The native `Iterator.prototype.` as a free function taking the * iterator first, or undefined when the engine lacks it. * * One assertion bridges a reflective call to the shim's signature. The shapes * are checked against each other by the test262 run, which drives the native * and the shim through the same suite. */ export declare function nativeIteratorHelper(name: string): F | undefined; /** * The native `Iterator.` static, or undefined when absent. */ export declare function nativeIteratorStatic(name: string): F | undefined; export declare const iteratorConcatNative: typeof iteratorConcatShim | undefined; export declare const iteratorConcat: typeof iteratorConcatShim; export declare const iteratorDropNative: typeof iteratorDropShim | undefined; export declare const iteratorDrop: typeof iteratorDropShim; export declare const iteratorEveryNative: typeof iteratorEveryShim | undefined; export declare const iteratorEvery: typeof iteratorEveryShim; export declare const iteratorFilterNative: typeof iteratorFilterShim | undefined; export declare const iteratorFilter: typeof iteratorFilterShim; export declare const iteratorFindNative: typeof iteratorFindShim | undefined; export declare const iteratorFind: typeof iteratorFindShim; export declare const iteratorFlatMapNative: typeof iteratorFlatMapShim | undefined; export declare const iteratorFlatMap: typeof iteratorFlatMapShim; export declare const iteratorForEachNative: typeof iteratorForEachShim | undefined; export declare const iteratorForEach: typeof iteratorForEachShim; export declare const iteratorFromNative: typeof iteratorFromShim | undefined; export declare const iteratorFrom: typeof iteratorFromShim; export declare const iteratorMapNative: typeof iteratorMapShim | undefined; export declare const iteratorMap: typeof iteratorMapShim; export declare const iteratorReduceNative: typeof iteratorReduceShim | undefined; export declare const iteratorReduce: typeof iteratorReduceShim; export declare const iteratorSomeNative: typeof iteratorSomeShim | undefined; export declare const iteratorSome: typeof iteratorSomeShim; export declare const iteratorTakeNative: typeof iteratorTakeShim | undefined; export declare const iteratorTake: typeof iteratorTakeShim; export declare const iteratorToArrayNative: typeof iteratorToArrayShim | undefined; export declare const iteratorToArray: typeof iteratorToArrayShim;