import type { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 } from "@standard-schema/spec"; import type { StandardSchemaWithJSON } from "@modelcontextprotocol/client"; /** * A schema that implements both Standard Schema (validation) and Standard JSON * Schema (serialization). Zod v4, ArkType, and Valibot (via * `@valibot/to-json-schema`) all satisfy this. Re-exported from the SDK so * View authors can import it alongside {@link app!App `App`}. * * @see https://standardschema.dev/ */ export type { StandardJSONSchemaV1, StandardSchemaV1, StandardSchemaWithJSON, StandardTypedV1, }; /** * Serialize a Standard Schema to JSON Schema for the given direction. * * Requires `~standard.jsonSchema` (zod v4, ArkType, Valibot, …); schemas * without it throw. */ export declare function standardSchemaToJsonSchema(schema: StandardSchemaV1, io: "input" | "output"): Promise>; /** * Validate a value against a Standard Schema. Returns the parsed value on * success or throws with a formatted issue list (optionally prefixed). */ export declare function validateStandardSchema(schema: S, value: unknown, errorPrefix?: string): Promise>;