import { BiConsumer, BinaryOperator, BiPredicate, Collector, Comparator, Consumer, Decuple, Maybe, Nonuple, Octuple, Pair, Predicate, Quadruple, Quintuple, Septuple, Sextuple, Single, Supplier, Triple, TypedBiFunction, TypedFunction } from "andross"; import { IStream, ITry, ITryStream } from "./Interfaces"; /** * @private */ export declare abstract class AbstractStream implements IStream { protected iterable: Iterable; private done; constructor(iterable: Iterable); [Symbol.iterator](): Iterator; collect(collector: Collector): R; collectWith(supplier: Supplier, accumulator: BiConsumer, finisher: TypedFunction): R; end(): void; every(predicate: Predicate): boolean; find(predicate: BiPredicate): Maybe; findIndex(predicate: BiPredicate): number; first(): Maybe; forEach(consumer: Consumer): void; fork(): this; group(classifier: TypedFunction): Map; has(object: T): boolean; isEmpty(): boolean; isSizeBetween(lower?: number, upper?: number): boolean; join(delimiter?: string, prefix?: string, suffix?: string): string; last(): Maybe; none(predicate: Predicate): boolean; nth(n: number): Maybe; max(comparator?: Comparator): Maybe; maxBy(sortKey: TypedFunction): Maybe; min(comparator?: Comparator): Maybe; minBy(sortKey: TypedFunction): Maybe; partition(predicate: Predicate): { false: T[]; true: T[]; }; reduce(reducer: TypedBiFunction, initialValue: S): S; reduceSame(reducer: TypedBiFunction): Maybe; size(): number; shift(): Maybe; some(predicate: Predicate): boolean; slice(startOffset?: number, endOffset?: number): T[]; splice(offset?: number, maxAmount?: number): T[]; sum(converter?: TypedFunction): number; toArray(fresh?: boolean): T[]; toSet(fresh?: boolean): Set; toJSON(): T[]; toString(): string; toMap(keyMapper: TypedFunction, valueMapper: TypedFunction, merger?: BinaryOperator): Map; tryCompute(operation: TypedFunction, S>): ITry; tryEnd(): ITry; abstract chunkBy(classifier: TypedBiFunction): IStream; abstract concat(...iterables: Iterable[]): this; abstract consume(sink: T[] | Consumer, offset?: number, maxAmount?: number): this; abstract cycle(count?: number): this; abstract flatMap(mapper: TypedFunction>): IStream; abstract filter(predicate: Predicate): this; abstract filterBy(target: K, keyExtractor?: TypedFunction, comparator?: Comparator): this; abstract index(): IStream<{ index: number; value: T; }>; abstract limit(limitTo: number): this; abstract map(mapper: TypedFunction): IStream; abstract promise(promiseConverter: TypedFunction>): Promise>; abstract reverse(): this; abstract skip(toSkip: number): this; abstract chunk(chunkSize: 0): IStream; abstract chunk(chunkSize: 1): IStream>; abstract chunk(chunkSize: 2): IStream | Single>; abstract chunk(chunkSize: 3): IStream | Pair | Single>; abstract chunk(chunkSize: 4): IStream | Triple | Pair | Single>; abstract chunk(chunkSize: 5): IStream | Quadruple | Triple | Pair | Single>; abstract chunk(chunkSize: 6): IStream | Quintuple | Quadruple | Triple | Pair | Single>; abstract chunk(chunkSize: 7): IStream | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; abstract chunk(chunkSize: 8): IStream | Septuple | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; abstract chunk(chunkSize: 9): IStream | Octuple | Septuple | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; abstract chunk(chunkSize: 10): IStream | Nonuple | Octuple | Septuple | Sextuple | Quintuple | Quadruple | Triple | Pair | Single>; abstract chunk(sliceSize: number): IStream; abstract sort(comparator?: Comparator): this; abstract sortBy(keyExtractor: TypedFunction, comparator?: Comparator): this; abstract try(operation: TypedFunction): ITryStream; abstract unique(comparator?: Comparator): this; abstract uniqueBy(keyExtractor?: TypedFunction): this; abstract visit(consumer: Consumer): this; abstract zip(other: Iterable): IStream<[Maybe, Maybe]>; abstract zipSame(...others: Iterable[]): IStream[]>; protected abstract clone(iterable: Iterable): this; protected checkOnly(): void; protected check(): void; }