import { type JsonValue } from "../state/json.js"; export declare const MAX_JSON_PATCH_OPERATIONS = 256; export declare const MAX_JSON_PATCH_BYTES: number; export declare const MAX_JSON_POINTER_BYTES = 1024; export declare const MAX_WORKFLOW_SETTINGS_BYTES: number; export type JsonPatchAddOperation = { op: "add"; path: string; value: JsonValue; }; export type JsonPatchRemoveOperation = { op: "remove"; path: string; }; export type JsonPatchReplaceOperation = { op: "replace"; path: string; value: JsonValue; }; export type JsonPatchMoveOperation = { op: "move"; path: string; from: string; }; export type JsonPatchCopyOperation = { op: "copy"; path: string; from: string; }; export type JsonPatchTestOperation = { op: "test"; path: string; value: JsonValue; }; export type JsonPatchOperation = JsonPatchAddOperation | JsonPatchRemoveOperation | JsonPatchReplaceOperation | JsonPatchMoveOperation | JsonPatchCopyOperation | JsonPatchTestOperation; export type JsonPatch = JsonPatchOperation[]; export type JsonPointerTarget = { exists: boolean; value?: JsonValue; }; export declare function validateJsonPatch(value: unknown): JsonPatch; export declare function parseJsonPointer(pointer: string): string[]; export declare function encodeJsonPointer(segments: readonly string[]): string; export declare function jsonPointerTarget(document: JsonValue, pointer: string): JsonPointerTarget; export declare function applyJsonPatch(document: JsonValue, value: unknown): JsonValue; export declare function applyJsonPatchOperation(document: JsonValue, operation: JsonPatchOperation): JsonValue; export declare function cloneJson(value: T): T;