import { z } from "zod"; import type { ResultValue } from "./result.js"; export declare class Schema { private zodSchema; constructor(zodSchema: z.ZodType); parse(data: unknown): ResultValue; parseJSON(jsonString: string): ResultValue; /** * Convert this schema to a JSON Schema document, with any * `@jsonSchema(...)` metadata attached via `.meta(...)` merged in. * * The output form, the default, describes a parsed value: a key with a * default is always present after parsing, so it is required. The input * form describes what a caller may send, where such a key is optional. * Agency code asks for it with `schema(T).toJSONSchema("input")`. */ toJSONSchema(io?: "input" | "output"): unknown; } export declare function __validateType(value: unknown, schema: z.ZodType): ResultValue;