import { JsonPointer, JsonError } from 'json-schema-library'; import { JsonNode } from '../types'; export declare function buildPathsMap(paths: (JsonPointer | string[])[]): Record; export declare function unlinkMap(): never; /** * Returns a new tree with cloned nodes along the given path * @returns [new root node, node at pointer] or error if path is invalid */ export declare function unlinkPaths(): never; /** * Returns a new tree with cloned nodes along the given path * @returns [new root node, node at pointer] or error if path is invalid */ export declare function unlinkPath(previousRoot: T, pointer: JsonPointer | string[]): JsonError | [T, JsonNode];