import { Comparator, Consumer, Decuple, Maybe, Nonuple, Octuple, Pair, Predicate, Quadruple, Quintuple, Septuple, Sextuple, Single, Triple, TypedBiFunction, TypedFunction } from "andross"; import { AbstractStream } from "./AbstractStream"; import { IStream, ITryStream } from "./Interfaces"; export declare class TypesafeStream extends AbstractStream { ["constructor"]: (typeof TypesafeStream); chunk(chunkSize: 0): IStream; chunk(chunkSize: 1): IStream>; chunk(chunkSize: 2): IStream | Single>; chunk(chunkSize: 3): IStream | Pair | Single>; chunk(chunkSize: 4): IStream | Triple | Pair | Single>; chunk(chunkSize: 5): IStream | Quadruple | Triple | Pair | Single>; chunk(chunkSize: 6): IStream | Quintuple | Quadruple | Triple | Pair | Single>; chunk(chunkSize: 7): IStream | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; chunk(chunkSize: 8): IStream | Septuple | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; chunk(chunkSize: 9): IStream | Octuple | Septuple | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; chunk(chunkSize: 10): IStream | Nonuple | Octuple | Septuple | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; chunk(chunkSize: number): IStream; chunkBy(classifier: TypedBiFunction): IStream; concat(...iterables: Iterable[]): this; consume(sink: T[] | Consumer, offset?: number, maxAmount?: number): this; cycle(count?: number): this; flatMap(mapper: TypedFunction>): IStream; filter(predicate: Predicate): this; filterBy(target: K, keyExtractor: TypedFunction, comparator?: Comparator): this; index(): IStream<{ index: number; value: T; }>; limit(limitTo?: number): this; map(mapper: TypedFunction): IStream; promise(promiseConverter: TypedFunction>): Promise>; replace(mapper: TypedFunction): this; reverse(): this; skip(toSkip?: number): this; sort(comparator?: Comparator): this; sortBy(keyExtractor: TypedFunction, comparator?: Comparator): this; try(operation: TypedFunction): ITryStream; unique(comparator?: Comparator): this; uniqueBy(keyExtractor: TypedFunction): this; visit(consumer: Consumer): this; zip(other: Iterable): IStream<[Maybe, Maybe]>; zipSame(...others: Iterable[]): IStream[]>; protected clone(iterable: Iterable): this; }