import type { Path } from "@thi.ng/api"; /** * Similar to {@link mutInUnsafe}, but takes any number of path-value * pairs as args and applies them in sequence using `mutInUnsafe()`. * * @remarks * All intermediate path keys must already be present in the given data * structure until their penultimate key. Missing leaf keys are * supported. * * The type parameter `T` can be used to indicate the type of the state * value and will also be used as return type. * * @example * ```ts tangle:../export/mut-in-many-unsafe.ts * import { mutInManyUnsafe } from "@thi.ng/paths"; * * const res = mutInManyUnsafe( * { a: { b: 1 }, x: { y: { z: 2 } } }, * // pair #1 * "a.b", 10, * // pair #2 * "x.y.z", 20 * ); * * console.log(res); * // { a: { b: 10 }, x: { y: { z: 20 } } } * ``` * * @param state - * @param pairs - */ export declare function mutInManyUnsafe(state: T, p1: Path, v1: any): T; export declare function mutInManyUnsafe(state: T, p1: Path, v1: any, p2: Path, v2: any): T; export declare function mutInManyUnsafe(state: T, p1: Path, v1: any, p2: Path, v2: any, p3: Path, v3: any): T; export declare function mutInManyUnsafe(state: T, p1: Path, v1: any, p2: Path, v2: any, p3: Path, v3: any, p4: Path, v4: any): T; export declare function mutInManyUnsafe(state: T, p1: Path, v1: any, p2: Path, v2: any, p3: Path, v3: any, p4: Path, v4: any, ...pairs: any[]): T; //# sourceMappingURL=mut-in-many.d.ts.map