/** * A generic, abstract class for managing an array-like collection of items. * @template T The type of elements stored in the list. */ export declare abstract class List { protected inner: T[]; /** * Constructor for the List class. * @param inner The internal array that stores the elements. * @throws Error if the provided array is not */ constructor(inner: T[]); [Symbol.iterator](): Iterable; get length(): number; /** * Provides direct access to the internal array of items. * @returns A reference to the internal array of items. */ asArray(): T[]; /** * Returns a copy of the internal array of items. * This ensures the internal array remains immutable when accessed via this method. * @returns A new array containing the elements of the internal array. */ all(): T[]; } //# sourceMappingURL=List.d.ts.map