/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
/**
 * Utilities for working with async iterators.
 */
export declare namespace AsyncIterator {
    /**
     * Merge multiple async iterators, yielding results as they become available from any iterator.
     *
     * Results are yielded in the order they resolve, not the order of iterators.
     * Errors from individual iterators are collected and thrown as an aggregate error after all iterators complete.
     *
     * @param iterators The async iterables to merge
     * @param errorMessage Optional message for the aggregate error if any iterators fail
     */
    function merge<T>(iterators: AsyncIterable<T>[], errorMessage?: string): AsyncGenerator<T>;
}
//# sourceMappingURL=AsyncIterator.d.ts.map