import { z } from "zod/v4"; import type { JSONSchema } from "zod/v4/core"; import { RefinementHandler } from "../../core/types"; /** * Handles the JSON Schema `if`/`then`/`else` conditional keywords. * * Per JSON Schema draft 2020-12: when the instance validates against the * `if` subschema, it must also validate against `then` (when present); * otherwise it must validate against `else` (when present). A lone `if` * (without `then` and `else`), or `then`/`else` without `if`, imposes no * constraints. Boolean subschemas (`if: false`, etc.) are honored. */ export declare class IfThenElseHandler implements RefinementHandler { apply(zodSchema: z.ZodTypeAny, schema: JSONSchema.BaseSchema): z.ZodTypeAny; }