import { z } from "zod/v4"; /** * Preserve the Zod 4.0-compatible declaration shape while using newer Zod 4 * implementations at runtime. Newer releases infer the discriminator as a * second type parameter, which older `zod/v4` permalinks cannot consume. */ export type CompatibleZodDiscriminatedUnion = z.ZodDiscriminatedUnion; export declare function discriminatedUnion(discriminator: string, options: Types): CompatibleZodDiscriminatedUnion; /** * Same declaration-compat trick for `z.preprocess`: newer Zod 4 releases * declare its result as `ZodPreprocess`, which older `zod/v4` permalinks do * not export. Erase it to the portable `ZodType` shape in declarations. */ export declare function preprocess(fn: (value: unknown) => unknown, schema: T): z.ZodType, unknown>;