import { HashMap } from './hashmap.js'; import { AbstractSet } from './abstract-set.js'; import * as mutable from './mutable/hashset.js'; export declare class HashSet extends AbstractSet> { protected constructor(items: Set); static empty: HashSet; static of(...items: T[]): HashSet; static from(elements: Iterable): HashSet; protected fromArray(array: T[]): HashSet; toMap(mapper: (item: T) => [K, V]): HashMap; map(f: (item: T) => B): HashSet; flatMap(f: (item: T) => HashSet): HashSet; concat(that: Iterable): HashSet; union(other: Iterable): HashSet; appended(item: T): HashSet; appendedAll(other: Iterable): HashSet; removed(item: T): HashSet; removedAll(other: Iterable): HashSet; intersect(other: HashSet): HashSet; get toMutable(): mutable.HashSet; }