import { Actions, HandlerContext, Model, Props } from '../types/index.js'; import { Env } from '../boundary/components/env/types.js'; import { WithHandle } from './types.js'; /** * Walks the lodash-style dotted `path` on `target`, stopping one segment * short so callers can mutate or read the leaf via the returned `cursor` * and `key`. Used by every assignment helper below to avoid duplicating * the per-segment descent. * * @internal */ export declare function walk(target: unknown, path: string): { cursor: Record; key: string; }; /** * Assigns `value` to the leaf of `target` reached by lodash-style `path`. * Mutates in place — expected to be called from inside an Immer * `produce` draft. * * @internal */ export declare function setPath(target: unknown, path: string, value: unknown): void; /** * Flips the boolean leaf of `target` reached by lodash-style `path`. * Mutates in place — expected to be called from inside an Immer * `produce` draft. * * @internal */ export declare function invertPath(target: unknown, path: string): void; /** * Returns a handler that assigns the dispatched payload to the model * leaf at lodash-style `key`. Underlies both `context.with.update` and * the top-level `With.Update`. * * @internal */ export declare function makeUpdate(key: string): (context: HandlerContext, payload: unknown) => void; /** * Returns a handler that flips the boolean model leaf at lodash-style * `key`. Underlies both `context.with.invert` and `With.Invert`. * * @internal */ export declare function makeInvert(key: string): (context: HandlerContext) => void; /** * Returns a handler that assigns the constant `value` to the model * leaf at lodash-style `key`, ignoring any dispatched payload. * Underlies both `context.with.always` and `With.Always`. * * @internal */ export declare function makeAlways(key: string, value: unknown): (context: HandlerContext) => void; /** * Builds the {@link WithHandle} object returned via `context.with`. The * runtime is identical for any model — only the call-site types differ. * * @internal */ export declare function bindWith(): WithHandle;