import type * as z from 'zod'; import type { MutationRouteSchema, RouteSchema } from './schema.js'; type InferRouteSchemaBody = TSchema extends MutationRouteSchema ? TSchema extends { body: infer TBody; } ? z.infer : unknown : never; /** * Infer the request body type from an action schema. * * @remarks HTTP action schemas can be inspected with * `InferRouteBody`. Schemas without a body schema infer * `unknown`. */ export type InferRouteBody = T extends RouteSchema ? InferRouteSchemaBody : never; export {};