import { BasicEnumerable } from './BasicEnumerable'; import { Comparer, IEnumerableFactory, IOrderedEnumerable } from '../types'; /** * Represents a sorted sequence. * @typeparam TSource The type of the elements of the sequence. */ export declare class OrderedEnumerable extends BasicEnumerable implements IOrderedEnumerable { private readonly orderedPairs; constructor(factory: IEnumerableFactory, orderedPairs: () => Generator); /** * Performs a subsequent ordering of the elements in a sequence in ascending order. * @typeparam TKey The type of the key returned by keySelector. * @param keySelector A function to extract a key from each element. * @returns An IOrderedEnumerable whose elements are sorted according to a key. */ thenBy(keySelector: (item: TSource) => TKey): IOrderedEnumerable; /** * Performs a subsequent ordering of the elements in a sequence in ascending order. * @typeparam TKey The type of the key returned by keySelector. * @param keySelector A function to extract a key from each element. * @param comparer An Comparer to compare keys. * @returns An IOrderedEnumerable whose elements are sorted according to a key. */ thenBy(keySelector: (item: TSource) => TKey, comparer: Comparer): IOrderedEnumerable; /** * Performs a subsequent ordering of the elements in a sequence in descending order. * @typeparam TKey The type of the key returned by keySelector. * @param keySelector A function to extract a key from each element. * @returns An IOrderedEnumerable whose elements are sorted according to a key. */ thenByDescending(keySelector: (item: TSource) => TKey): IOrderedEnumerable; /** * Performs a subsequent ordering of the elements in a sequence in descending order. * @typeparam TKey The type of the key returned by keySelector. * @param keySelector A function to extract a key from each element. * @param comparer An Comparer to compare keys. * @returns An IOrderedEnumerable whose elements are sorted according to a key. */ thenByDescending(keySelector: (item: TSource) => TKey, comparer: Comparer): IOrderedEnumerable; } //# sourceMappingURL=OrderedEnumerable.d.ts.map