import { DefaultNodeOptions } from '../node/createNode'; import { JsonError, JsonPointer } from 'json-schema-library'; import { JsonNode, Change, JsonSchema } from '../types'; /** * Recreate a json-editor ast node at the given location. * Use this to update a node's json-schema which was modified in its source. * * @param he - instance of headless-json-editor * @param rootNode - root node of current json-editor ast * @param targetNode - node to be recreated * @return [newRootNode, listOfChanges] */ export declare function updateNode(ast: T, pointer: JsonPointer): [JsonError | T, Change[]?]; /** * updates schema of a node */ export declare function updateSchema(rootNode: JsonNode, pointer: JsonPointer, schema: JsonSchema): [JsonError] | [JsonNode, Change[]]; /** * updates options of a node */ export declare function updateOptions(rootNode: JsonNode, pointer: JsonPointer, options: DefaultNodeOptions): [JsonError] | [JsonNode, Change[]];