import { Stream } from './stream'; export interface Collection { add(e: E): boolean; addAll(col: Collection): boolean; clear(): void; contains(e: E): boolean; containsAll(col: Collection): boolean; isEmpty(): boolean; remove(e: any): boolean; removeAll(col: Collection): boolean; removeIf(predicate: (e: E) => boolean): boolean; retainAll(col: Collection): boolean; size(): number; stream(): Stream; toArray(): E[]; forEach(consumer: (c: E) => void): void; }