export type Path = Array; /** Depth-first pre-order walk over any JS value. */ export declare function walkValue(value: unknown, fn: (value: unknown, path: Path) => void, path?: Path): void; /** Deep map that returns a transformed copy. Mapper can replace any node. */ export declare function mapValue(value: T, fn: (value: unknown, path: Path) => unknown, path?: Path): T; export type KeyMapper = (key: string, path: Path) => string; /** Deep map that can also transform object keys. */ export declare function mapValueWithKeys(value: T, mapNode: (value: unknown, path: Path) => unknown, mapKey?: KeyMapper, path?: Path): T; //# sourceMappingURL=walk.d.ts.map