import type { z } from 'zod'; import type { DefinitionSchemaParserContext } from './types.js'; /** * Type constraint for any schema creator function (with or without slots). * Works with both: * - `definitionSchema` which returns `(ctx) => ZodType` * - `definitionSchemaWithSlots` which returns `(ctx, slots) => ZodType` */ type AnyDefinitionSchemaCreator = (ctx: DefinitionSchemaParserContext, ...args: any[]) => z.ZodType; /** * Infers the Zod schema type from a schema creator function. */ export type InferSchema = ReturnType; /** * Infers the input type (what you pass to parse) from a schema creator function. */ export type InferInput = z.input>; /** * Infers the output type (what parse returns) from a schema creator function. */ export type InferOutput = z.output>; export {}; //# sourceMappingURL=infer-types.d.ts.map