/** * Mnemonist MultiSet Typings * =========================== */ export default class MultiSet implements Iterable { // Members dimension: number; size: number; // Constructor constructor(); // Methods clear(): void; add(key: K, count?: number): this; set(key: K, count: number): this; has(key: K): boolean; delete(key: K): boolean; remove(key: K, count?: number): void; edit(a: K, b: K): this; multiplicity(key: K): number; count(key: K): number; get(key: K): number; frequency(key: K): number; top(n: number): Array<[K, number]>; forEach(callback: (value: K, key: K, set: this) => void, scope?: any): void; forEachMultiplicity(callback: (value: number, key: K, set: this) => void, scope?: any): void; keys(): IterableIterator; values(): IterableIterator; multiplicities(): IterableIterator<[K, number]>; [Symbol.iterator](): IterableIterator; inspect(): any; toJSON(): any; // Statics static from(iterable: Iterable | {[key: string]: I}): MultiSet; static isSubset(a: MultiSet, b: MultiSet): boolean; static isSuperset(a: MultiSet, b: MultiSet): boolean; }