import type { JSONValue as JSONValueT, PatchJSON as PatchJSONT, PatchBlock as PatchBlockT, ParentRef as ParentRefT } from "@valbuild/core/patch"; import type { PatchId as PatchIdT } from "@valbuild/core"; import { z } from "zod"; /** * JSON, recursively — the shape of a Source over the wire. * * Exported because history reads stored Sources back and needs the same * definition; a second copy is a second thing to keep in step. */ export declare const JSONValue: z.ZodType; export declare const PatchJSON: z.ZodType; export type PatchJSON = PatchJSONT; export declare const Patch: z.ZodArray; path: z.ZodArray; value: z.ZodType>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"remove">; path: z.ZodTuple<[z.ZodString], z.ZodString>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"replace">; path: z.ZodArray; value: z.ZodType>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"move">; from: z.ZodTuple<[z.ZodString], z.ZodString>; path: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"copy">; from: z.ZodArray; path: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"test">; path: z.ZodArray; value: z.ZodType>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"file">; path: z.ZodArray; filePath: z.ZodString; value: z.ZodType>; remote: z.ZodBoolean; nestedFilePath: z.ZodOptional>; metadata: z.ZodOptional>>; }, z.core.$strict>], "op">>; export type Patch = z.infer; /** * A patch id names a directory in the local patch store and a segment of a * content service URL, so it is one path segment: not empty, no separator, * and not `.` or `..`. What an id looks like beyond that is its minter's. */ export declare const PatchId: z.ZodString & z.ZodType>; type ParentRefInput = { type: "head"; headBaseSha: string; } | { type: "patch"; patchId: string; }; export declare const ParentRef: z.ZodType; export type ParentRef = ParentRefT; export declare const PatchBlock: z.ZodObject<{ patch: z.ZodArray; path: z.ZodArray; value: z.ZodType>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"remove">; path: z.ZodTuple<[z.ZodString], z.ZodString>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"replace">; path: z.ZodArray; value: z.ZodType>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"move">; from: z.ZodTuple<[z.ZodString], z.ZodString>; path: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"copy">; from: z.ZodArray; path: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"test">; path: z.ZodArray; value: z.ZodType>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"file">; path: z.ZodArray; filePath: z.ZodString; value: z.ZodType>; remote: z.ZodBoolean; nestedFilePath: z.ZodOptional>; metadata: z.ZodOptional>>; }, z.core.$strict>], "op">>; parentRef: z.ZodType>; }, z.core.$strip>; export type PatchBlock = PatchBlockT; export {};