import { IEnumerator } from './_types'; import EnumeratorBase from "./EnumeratorBase"; import { Undefinable } from '../Types'; export default class ArrayEnumerator extends EnumeratorBase implements IEnumerator { #private; /** * Enumerate an array. * @param array The array to enumerate. * @param immutable True means the enumerator takes a copy of the array. False uses the array. */ constructor(array: T[], immutable?: boolean); get current(): T; moveNext(): boolean; peek(): Undefinable; reset(): void; private throwOutOfBoundsException; }