import { z } from 'zod';

/**
 * Type for wrapped object schemas in Zod v4.
 * In Zod v4, ZodEffects is replaced with ZodPipe for transforms.
 * For autoform purposes, we mainly deal with objects that might be wrapped in optional/default/nullable.
 */
type ZodObjectOrWrapped = z.ZodObject<any, any> | z.ZodType<any>;

export type { ZodObjectOrWrapped as Z };
