import { z } from 'zod'; export type QueryParamTransform = 'array' | 'boolean' | 'optional'; /** * Parses a comma-separated query string into a trimmed string array. */ export declare function queryParamArrayString(schema: T): z.ZodEffects; /** * Parses common truthy query string values into a boolean. */ export declare function queryParamBoolean(defaultValue?: boolean): z.ZodEffects | z.ZodDefault>; /** * Treats empty query string values as undefined before validating optional fields. */ export declare function queryParamOptional(schema: T): z.ZodEffects; /** * Builds a query-string Zod object schema from a filters shape and per-field transforms. * Use the inferred output type as the shared contract between API handlers and frontend callers. */ export declare function toQueryParamsSchema>(shape: T, transforms: Partial>): z.ZodObject<{ [K in keyof T]: z.ZodTypeAny; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{ [K in keyof T]: z.ZodTypeAny; }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;