import { JsonLens } from '../json-lens'; import { Patcher } from '../patching'; import { Reason } from '../reason'; export type Mutable = { -readonly [P in keyof T]: T[P]; }; export type Patch = (doc: Mutable) => Tree; /** * Patch a document at a JSON Pointer location */ export declare function patchAt(pointer: string, reason: Reason, patch: Patch): Patcher; /** * Patch a document at the root */ export declare function patchDocument(reason: Reason, patch: Patch): Patcher;