import type { IterSource, IteratorOrIterable } from './types';
/** Collects all values from the input iterator, then sorts them. */
export declare function sort<T extends IteratorOrIterable<unknown>>(comparator?: (a: IterSource<T>, b: IterSource<T>) => number): (arg: T) => IterableIterator<IterSource<T>>;
export declare function sort<T extends IteratorOrIterable<unknown>>(arg: T, comparator?: (a: IterSource<T>, b: IterSource<T>) => number): IterableIterator<IterSource<T>>;
export default sort;
//# sourceMappingURL=sort.d.ts.map