import { type Inspectable } from "./Inspectable.js"; import * as Option from "./Option.js"; import type { Pipeable } from "./Pipeable.js"; declare const TypeId: unique symbol; /** * @since 2.0.0 * @category symbol */ export type TypeId = typeof TypeId; /** * @since 2.0.0 * @category models */ export interface MutableHashMap extends Iterable<[K, V]>, Pipeable, Inspectable { readonly [TypeId]: TypeId; } /** * @since 2.0.0 * @category constructors */ export declare const empty: () => MutableHashMap; /** * @since 2.0.0 * @category constructors */ export declare const make: >(...entries: Entries) => MutableHashMap; /** * Creates a new `MutableHashMap` from an iterable collection of key/value pairs. * * @since 2.0.0 * @category constructors */ export declare const fromIterable: (entries: Iterable) => MutableHashMap; /** * @since 2.0.0 * @category elements */ export declare const get: { /** * @since 2.0.0 * @category elements */ (key: K): (self: MutableHashMap) => Option.Option; /** * @since 2.0.0 * @category elements */ (self: MutableHashMap, key: K): Option.Option; }; /** * @since 3.8.0 * @category elements */ export declare const keys: (self: MutableHashMap) => Array; /** * @since 3.8.0 * @category elements */ export declare const values: (self: MutableHashMap) => Array; /** * @since 2.0.0 * @category elements */ export declare const has: { /** * @since 2.0.0 * @category elements */ (key: K): (self: MutableHashMap) => boolean; /** * @since 2.0.0 * @category elements */ (self: MutableHashMap, key: K): boolean; }; /** * @since 2.0.0 */ export declare const set: { /** * @since 2.0.0 */ (key: K, value: V): (self: MutableHashMap) => MutableHashMap; /** * @since 2.0.0 */ (self: MutableHashMap, key: K, value: V): MutableHashMap; }; /** * Updates the value of the specified key within the `MutableHashMap` if it exists. * * @since 2.0.0 */ export declare const modify: { /** * Updates the value of the specified key within the `MutableHashMap` if it exists. * * @since 2.0.0 */ (key: K, f: (v: V) => V): (self: MutableHashMap) => MutableHashMap; /** * Updates the value of the specified key within the `MutableHashMap` if it exists. * * @since 2.0.0 */ (self: MutableHashMap, key: K, f: (v: V) => V): MutableHashMap; }; /** * Set or remove the specified key in the `MutableHashMap` using the specified * update function. * * @since 2.0.0 */ export declare const modifyAt: { /** * Set or remove the specified key in the `MutableHashMap` using the specified * update function. * * @since 2.0.0 */ (key: K, f: (value: Option.Option) => Option.Option): (self: MutableHashMap) => MutableHashMap; /** * Set or remove the specified key in the `MutableHashMap` using the specified * update function. * * @since 2.0.0 */ (self: MutableHashMap, key: K, f: (value: Option.Option) => Option.Option): MutableHashMap; }; /** * @since 2.0.0 */ export declare const remove: { /** * @since 2.0.0 */ (key: K): (self: MutableHashMap) => MutableHashMap; /** * @since 2.0.0 */ (self: MutableHashMap, key: K): MutableHashMap; }; /** * @since 2.0.0 */ export declare const clear: (self: MutableHashMap) => MutableHashMap; /** * @since 2.0.0 * @category elements */ export declare const size: (self: MutableHashMap) => number; /** * @since 2.0.0 */ export declare const isEmpty: (self: MutableHashMap) => boolean; /** * @since 2.0.0 */ export declare const forEach: { /** * @since 2.0.0 */ (f: (value: V, key: K) => void): (self: MutableHashMap) => void; /** * @since 2.0.0 */ (self: MutableHashMap, f: (value: V, key: K) => void): void; }; export {}; //# sourceMappingURL=MutableHashMap.d.ts.map