import type { DeepPath, Fn2, Path, Path0, Path1, Path2, Path3, Path4, Path5, Path6, Path7, Path8, PathVal } from "@thi.ng/api"; /** * Non-typechecked version of {@link defMutator}. * * @remarks * The type parameter `T` can be used to indicate the type of the nested value * to be mutated (default: `any`). * * @param path - */ export declare const defMutatorUnsafe: (path: Path) => Fn2; /** * Higher-order function, similar to {@link defSetter}. Returns a function, * which when called, mutates given object/array at given path location. Path * will be checked via {@link disallowProtoPath}. * * @remarks * The returned function bails if any intermediate path values are non-indexable * (only the very last path element can be missing in the actual object * structure). If successful, returns original (mutated) object, else * `undefined`. This function provides optimized versions for path lengths <= 4. * * Only the first 8 path levels are type checked. * * Also see {@link defMutatorUnsafe}, {@link mutIn} * * @param path - */ export declare function defMutator(path: Path0): Fn2; export declare function defMutator(path: Path1): Fn2, T>; export declare function defMutator(path: Path2): Fn2, T>; export declare function defMutator(path: Path3): Fn2, T>; export declare function defMutator(path: Path4): Fn2, T>; export declare function defMutator(path: Path5): Fn2, T>; export declare function defMutator(path: Path6): Fn2, T>; export declare function defMutator(path: Path7): Fn2, T>; export declare function defMutator(path: Path8): Fn2, T>; export declare function defMutator(path: DeepPath): Fn2; //# sourceMappingURL=mutator.d.ts.map