/** * @since 1.0.0 */ import * as Option from "@fp-ts/core/Option"; declare const TypeId: unique symbol; /** * @since 1.0.0 * @category symbol */ export type TypeId = typeof TypeId; /** * @since 1.0.0 * @category models */ export interface MutableHashMap extends Iterable { readonly _id: TypeId; } /** * @since 1.0.0 * @category constructors */ export declare const empty: () => MutableHashMap; /** * @since 1.0.0 * @category constructors */ export declare const make: >(...entries: Entries) => MutableHashMap; /** * @since 1.0.0 * @category conversions */ export declare const fromIterable: (entries: Iterable) => MutableHashMap; /** * @since 1.0.0 * @category elements */ export declare const get: { (self: MutableHashMap, key: K): Option.Option; (key: K): (self: MutableHashMap) => Option.Option; }; /** * @since 1.0.0 * @category elements */ export declare const has: { (self: MutableHashMap, key: K): boolean; (key: K): (self: MutableHashMap) => boolean; }; /** * Updates the value of the specified key within the `MutableHashMap` if it exists. * * @since 1.0.0 * @category mutations */ export declare const modify: { (self: MutableHashMap, key: K, f: (v: V) => V): MutableHashMap; (key: K, f: (v: V) => V): (self: MutableHashMap) => MutableHashMap; }; /** * Set or remove the specified key in the `MutableHashMap` using the specified * update function. * * @since 1.0.0 * @category mutations */ export declare const modifyAt: { (self: MutableHashMap, key: K, f: (value: Option.Option) => Option.Option): MutableHashMap; (key: K, f: (value: Option.Option) => Option.Option): (self: MutableHashMap) => MutableHashMap; }; /** * @since 1.0.0 * @category mutations */ export declare const remove: { (self: MutableHashMap, key: K): MutableHashMap; (key: K): (self: MutableHashMap) => MutableHashMap; }; /** * @since 1.0.0 * @category mutations */ export declare const set: { (self: MutableHashMap, key: K, value: V): MutableHashMap; (key: K, value: V): (self: MutableHashMap) => MutableHashMap; }; /** * @since 1.0.0 * @category elements */ export declare const size: (self: MutableHashMap) => number; export {}; //# sourceMappingURL=MutableHashMap.d.ts.map