import { Observable } from 'rxjs'; /** * This function is a testing utility. * It takes an observable and the expected number of values to be observed. * The returned Promise either resolves to an array with the observed values, or rejects on error. * If the expected number of values is not observed within the configurable timeout, the Promise resolves * with the values observed so far. * * @template T - type for the values to be observed * @param {Observable} observable - the observable. * @param {number} length - the expected number of values to be observed before resolving the result-Promise. * @param {number} timeoutAfter - the timeout for waiting on the expected number of values. Defaults to 3000ms * @returns {Promise} */ export declare const getSequence: (observable: Observable, length: number, timeoutAfter?: number) => Promise; /** * This function is a testing utility. * It takes an observable and array of values. * The returned Promise resolves as soon as the number of observed values equals the array-length AND the observed values equal the array-values (using expect with .toEqual). * It rejects in all other cases, e.g. if the expected number of values was not observed within the configurable timeout. * * @template T - type for the values to be observed * @param {Observable} observable - the observable. * @param {number} sequence - the expected values. * @param {number} timeoutAfter - the timeout for waiting on the expected values. Defaults to 3000ms * @returns {Promise} */ export declare const expectSequence: (observable: Observable, sequence: T[], timeoutAfter?: number) => Promise;