/** * @fileoverview Generic value-mapping resolver. Resolves a declarative mapping config of reference * strings against a set of named sources. Genericized from the Flow Agent input-mapping mechanism so * the same engine can drive agent step mappings, Record Process input/output mappings, and any other * "map values from named sources" need — keeping the logic in one canonical, reusable place. * * Reference syntax (a mapping value that is a string): * - `static:` → the literal text after the colon * - `.` → value at `path` within `sources[sourceName]` (source name matched * case-insensitively; `path` supports dot + `arr[0]` indexing) * - anything else → returned verbatim (treated as a literal) * * Objects and arrays are resolved recursively, preserving shape. */ /** * Reads a value at a dot/bracket path from an object (e.g. `a.b`, `a.items[0].name`). Path * navigation is case-sensitive; returns `undefined` if any segment is missing. */ export declare function getValueAtPath(obj: unknown, path: string): unknown; /** * Resolves a single mapping reference against the supplied named sources. See the module overview * for the reference syntax. Non-string refs are returned unchanged. */ export declare function resolveMappingRef(ref: unknown, sources: Record): unknown; /** * Recursively resolves a mapping config (string / array / object) against named sources, returning a * structure of the same shape with every reference resolved. * * @param mapping - The mapping config (e.g. `{ name: 'record.Name', when: 'static:today' }`). * @param sources - Named sources to resolve references against (e.g. `{ record, context }`). */ export declare function resolveValueMapping>(mapping: unknown, sources: Record): T; //# sourceMappingURL=valueMapping.d.ts.map