import type { Static } from '../../type/static/index'; import { TypeBoxError } from '../../type/error/index'; import { type TLiteral } from '../../type/literal/index'; import { type TObject } from '../../type/object/index'; import { type TString } from '../../type/string/index'; import { type TUnknown } from '../../type/unknown/index'; import { type TUnion } from '../../type/union/index'; export type Insert = Static; export declare const Insert: TObject<{ type: TLiteral<'insert'>; path: TString; value: TUnknown; }>; export type Update = Static; export declare const Update: TObject<{ type: TLiteral<'update'>; path: TString; value: TUnknown; }>; export type Delete = Static; export declare const Delete: TObject<{ type: TLiteral<'delete'>; path: TString; }>; export type Edit = Static; export declare const Edit: TUnion<[typeof Insert, typeof Update, typeof Delete]>; export declare class ValueDiffError extends TypeBoxError { readonly value: unknown; constructor(value: unknown, message: string); } export declare function Diff(current: unknown, next: unknown): Edit[]; export declare function Patch(current: unknown, edits: Edit[]): T;