import { Operator } from '../core/types'; /** * @short * Get *pairwise* adjacent values. * * @categories * operator no-parameters * * @description * Instead of iterating value by value from the source iterator, the resulting * iterator will yield pairs of values: first and second, second and third, * third and fourth, fourth and fifth, and so forth. * * Empty iterator and an iterator with a single value will both result in an * empty iterator. * * This is a specialization of {@link slideThrough}. * * @returns * Operator * * @example * j.pipe( * [1, 2, 3, 4, 5], * j.pairwise(), * ) * // => [[1, 2], [2, 3], [3, 4], [4, 5]] * * @example * j.pipe( * [1], * j.pairwise(), * ) * // => [] * * @example * j.pipe( * [], * j.pairwise(), * ) * // => [] */ export declare function pairwise(): Operator; /** * @short * Get *pairwise* values in a *cyclic* manner. * * @categories * operator no-parameters * * @description * Instead of iterating value by value from the source iterator, the resulting * iterator will yield pairs of values: first and second, second and third, * third and fourth, fourth and fifth, and so forth. Additionally, the last * yielded pair will consist of the last and the first value of the source * iterator. * * This is a specialization of {@link slideThroughCyclic}. * * @returns * Operator * * @example * j.pipe( * [1, 2, 3, 4, 5], * j.pairwiseCyclic(), * ) * // => [[1, 2], [2, 3], [3, 4], [4, 5], [5, 1]] * * @example * j.pipe( * [1], * j.pairwiseCyclic(), * ) * // => [[1, 1]] * * @example * j.pipe( * [], * j.pairwiseCyclic(), * ) * // => [] */ export declare function pairwiseCyclic(): Operator;