import { type ArrayOrValue } from '../array/array'; import { type Maybe } from '../value/maybe.type'; /** * Combines multiple Maps into a single Map. Later maps override earlier values for the same key. * * @param maps - Lookups to merge; nullish entries are skipped. * @returns Combined lookup with later entries overriding earlier ones per key. */ export declare function combineMaps(...maps: Maybe>[]): Map; /** * Sets the same value for one or more keys in a Map. * * @param map - Lookup that receives the writes in place. * @param key - One or more keys to associate with `value`. * @param value - Payload assigned to every supplied key. * @returns Same `map` reference after the assignments. */ export declare function setKeysOnMap(map: Map, key: ArrayOrValue, value: T): Map; /** * Converts a Map to an array of key-value tuples. * * @param map - Lookup whose entries should be flattened. * @returns Tuple list mirroring the lookup's entry iteration order. */ export declare function mapToTuples(map: Map): [K, T][]; /** * Expands a Map with array values into individual key/value tuples. * * @param map - Lookup whose values are arrays to expand. * @returns Flattened tuples — one per element across every keyed array. */ export declare function expandArrayMapTuples(map: Map): [K, T][]; /** * Expands tuples where values may be arrays into individual key/value tuples. * * @param values - Tuples whose right-hand side may be a single value or an array. * @returns Flattened tuples emitting one entry per element on each input tuple. */ export declare function expandArrayValueTuples(values: [K, ArrayOrValue][]): [K, T][];