![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/lavocat.quebec/private_html/node_modules/effect/dist/dts/ |
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<out K, out V> extends Iterable<[K, V]>, Pipeable, Inspectable {
readonly [TypeId]: TypeId;
}
/**
* @since 2.0.0
* @category constructors
*/
export declare const empty: <K = never, V = never>() => MutableHashMap<K, V>;
/**
* @since 2.0.0
* @category constructors
*/
export declare const make: <Entries extends Array<readonly [any, any]>>(...entries: Entries) => MutableHashMap<Entries[number] extends readonly [infer K, any] ? K : never, Entries[number] extends readonly [any, infer V] ? V : never>;
/**
* Creates a new `MutableHashMap` from an iterable collection of key/value pairs.
*
* @since 2.0.0
* @category constructors
*/
export declare const fromIterable: <K, V>(entries: Iterable<readonly [K, V]>) => MutableHashMap<K, V>;
/**
* @since 2.0.0
* @category elements
*/
export declare const get: {
/**
* @since 2.0.0
* @category elements
*/
<K>(key: K): <V>(self: MutableHashMap<K, V>) => Option.Option<V>;
/**
* @since 2.0.0
* @category elements
*/
<K, V>(self: MutableHashMap<K, V>, key: K): Option.Option<V>;
};
/**
* @since 3.8.0
* @category elements
*/
export declare const keys: <K, V>(self: MutableHashMap<K, V>) => Array<K>;
/**
* @since 3.8.0
* @category elements
*/
export declare const values: <K, V>(self: MutableHashMap<K, V>) => Array<V>;
/**
* @since 2.0.0
* @category elements
*/
export declare const has: {
/**
* @since 2.0.0
* @category elements
*/
<K>(key: K): <V>(self: MutableHashMap<K, V>) => boolean;
/**
* @since 2.0.0
* @category elements
*/
<K, V>(self: MutableHashMap<K, V>, key: K): boolean;
};
/**
* @since 2.0.0
*/
export declare const set: {
/**
* @since 2.0.0
*/
<K, V>(key: K, value: V): (self: MutableHashMap<K, V>) => MutableHashMap<K, V>;
/**
* @since 2.0.0
*/
<K, V>(self: MutableHashMap<K, V>, key: K, value: V): MutableHashMap<K, V>;
};
/**
* 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
*/
<K, V>(key: K, f: (v: V) => V): (self: MutableHashMap<K, V>) => MutableHashMap<K, V>;
/**
* Updates the value of the specified key within the `MutableHashMap` if it exists.
*
* @since 2.0.0
*/
<K, V>(self: MutableHashMap<K, V>, key: K, f: (v: V) => V): MutableHashMap<K, V>;
};
/**
* 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
*/
<K, V>(key: K, f: (value: Option.Option<V>) => Option.Option<V>): (self: MutableHashMap<K, V>) => MutableHashMap<K, V>;
/**
* Set or remove the specified key in the `MutableHashMap` using the specified
* update function.
*
* @since 2.0.0
*/
<K, V>(self: MutableHashMap<K, V>, key: K, f: (value: Option.Option<V>) => Option.Option<V>): MutableHashMap<K, V>;
};
/**
* @since 2.0.0
*/
export declare const remove: {
/**
* @since 2.0.0
*/
<K>(key: K): <V>(self: MutableHashMap<K, V>) => MutableHashMap<K, V>;
/**
* @since 2.0.0
*/
<K, V>(self: MutableHashMap<K, V>, key: K): MutableHashMap<K, V>;
};
/**
* @since 2.0.0
*/
export declare const clear: <K, V>(self: MutableHashMap<K, V>) => MutableHashMap<K, V>;
/**
* @since 2.0.0
* @category elements
*/
export declare const size: <K, V>(self: MutableHashMap<K, V>) => number;
/**
* @since 2.0.0
*/
export declare const isEmpty: <K, V>(self: MutableHashMap<K, V>) => boolean;
/**
* @since 2.0.0
*/
export declare const forEach: {
/**
* @since 2.0.0
*/
<K, V>(f: (value: V, key: K) => void): (self: MutableHashMap<K, V>) => void;
/**
* @since 2.0.0
*/
<K, V>(self: MutableHashMap<K, V>, f: (value: V, key: K) => void): void;
};
export {};
//# sourceMappingURL=MutableHashMap.d.ts.map