import Sequence from "./Sequence";
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 {Array<T>} array
     * @returns {Array<T>}
     */
    toArray<T>(this: Sequence<T>, array?: Array<T>): Array<T>;
    /**
     * Returns all elements of the sequence as array. If an `array` is passed
     * the elements are appended to the end of the array.
     *
     * @param {Array<T>} array
     * @returns {Array<T>}
     */
    toList<T>(this: Sequence<T>, array?: Array<T>): Array<T>;
}
