/** * Mnemonist BiMap Typings * ======================== */ export class InverseMap implements Iterable<[K, V]> { // Members size: number; inverse: BiMap; // Methods clear(): void; set(key: K, value: V): this; delete(key: K): boolean; has(key: K): boolean; get(key: K): V | undefined; forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void; keys(): IterableIterator; values(): IterableIterator; entries(): IterableIterator<[K, V]>; [Symbol.iterator](): IterableIterator<[K, V]>; inspect(): any; } export default class BiMap implements Iterable<[K, V]> { // Members size: number; inverse: InverseMap; // Constructor constructor(); // Methods clear(): void; set(key: K, value: V): this; delete(key: K): boolean; has(key: K): boolean; get(key: K): V | undefined; forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void; keys(): IterableIterator; values(): IterableIterator; entries(): IterableIterator<[K, V]>; [Symbol.iterator](): IterableIterator<[K, V]>; inspect(): any; // Statics static from(iterable: Iterable<[I, J]> | {[key: string]: J}): BiMap; }