import { AsyncSequence } from "../../sequency"; export declare class ToArray { /** * Returns all elements of the sequence as array. If an `array` is passed * the elements are appended to the end of the array. * * @param {T[]} array * @returns {Promise} */ toArray(this: AsyncSequence, array?: T[]): Promise; /** * Returns all elements of the sequence as array. If an `array` is passed * the elements are appended to the end of the array. * * @param {T[]} array * @returns {Promise} */ toList(this: AsyncSequence, array?: T[]): Promise; }