/** * 用户相关的 Valibot 验证模式 * User-related Valibot validation schemas */ import * as v from 'valibot'; /** * 基础用户验证模式 * Base user validation schema */ export declare const BaseUserSchema: v.ObjectSchema<{ readonly name: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.MaxLengthAction, v.NonEmptyAction]>; readonly email: v.SchemaWithPipe, v.TrimAction, v.EmailAction, v.MaxLengthAction]>; readonly age: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; }, undefined>; /** * 创建用户验证模式 * Create user validation schema */ export declare const CreateUserSchema: v.ObjectSchema<{ readonly name: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.MaxLengthAction, v.NonEmptyAction]>; readonly email: v.SchemaWithPipe, v.TrimAction, v.EmailAction, v.MaxLengthAction]>; readonly age: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; }, undefined>; /** * 更新用户验证模式 - 所有字段都是可选的 * Update user validation schema - all fields are optional */ export declare const UpdateUserSchema: v.ObjectSchema<{ readonly name: v.OptionalSchema, v.TrimAction, v.MinLengthAction, v.MaxLengthAction, v.NonEmptyAction]>, undefined>; readonly email: v.OptionalSchema, v.TrimAction, v.EmailAction, v.MaxLengthAction]>, undefined>; readonly age: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; }, undefined>; /** * 用户查询参数验证模式 * User query parameters validation schema */ export declare const UserQuerySchema: v.ObjectSchema<{ readonly page: v.OptionalSchema, v.IntegerAction, v.MinValueAction]>, 1>; readonly limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, 10>; readonly search: v.OptionalSchema, v.TrimAction, v.MaxLengthAction]>, undefined>; readonly minAge: v.OptionalSchema, v.IntegerAction, v.MinValueAction]>, undefined>; readonly maxAge: v.OptionalSchema, v.IntegerAction, v.MaxValueAction]>, undefined>; }, undefined>; /** * 邮箱查询验证模式 * Email query validation schema */ export declare const EmailQuerySchema: v.ObjectSchema<{ readonly email: v.SchemaWithPipe, v.TrimAction, v.EmailAction, v.NonEmptyAction]>; }, undefined>; /** * ID 参数验证模式 * ID parameter validation schema */ export declare const UserIdSchema: v.ObjectSchema<{ readonly id: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction]>; }, undefined>; export type CreateUserInput = v.InferInput; export type UpdateUserInput = v.InferInput; export type UserQueryParams = v.InferInput; export type EmailQuery = v.InferInput; export type UserIdParams = v.InferInput; //# sourceMappingURL=user.d.ts.map