import * as z from "zod"; type UnknownKeysParam = "passthrough" | "strict" | "strip"; /** * This function generates a validator froma zod schema * * @param schema a zod schema. */ export declare const createValidator: (schema: z.ZodObject extends infer T extends object ? { [k in keyof T]: z.objectUtil.addQuestionMarks<{ [k_1 in keyof Shape]: Shape[k_1]["_output"]; }>[k]; } : never, z.objectUtil.addQuestionMarks<{ [k_3 in keyof Shape]: Shape[k_3]["_input"]; }> extends infer T_1 extends object ? { [k_2 in keyof T_1]: z.objectUtil.addQuestionMarks<{ [k_3 in keyof Shape]: Shape[k_3]["_input"]; }>[k_2]; } : never>) => (value: unknown) => { isValid: boolean; data: z.objectUtil.addQuestionMarks<{ [k_1 in keyof Shape]: Shape[k_1]["_output"]; }> extends infer T_2 extends object ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks<{ [k_1 in keyof Shape]: Shape[k_1]["_output"]; }>[k]; } : never; errors?: undefined; } | { isValid: boolean; errors: ({ path: string; code: "invalid_type"; expected: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never" | "set"; received: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "map" | "nan" | "integer" | "float" | "date" | "null" | "array" | "unknown" | "promise" | "void" | "never" | "set"; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_literal"; expected: unknown; message: string; fatal?: boolean | undefined; } | { path: string; code: "unrecognized_keys"; keys: string[]; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_union"; unionErrors: z.ZodError[]; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_union_discriminator"; options: z.Primitive[]; message: string; fatal?: boolean | undefined; } | { path: string; received: string | number; code: "invalid_enum_value"; options: (string | number)[]; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_arguments"; argumentsError: z.ZodError; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_return_type"; returnTypeError: z.ZodError; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_date"; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_string"; validation: z.StringValidation; message: string; fatal?: boolean | undefined; } | { path: string; code: "too_small"; minimum: number; inclusive: boolean; exact?: boolean | undefined; type: "string" | "number" | "date" | "array" | "set"; message: string; fatal?: boolean | undefined; } | { path: string; code: "too_big"; maximum: number; inclusive: boolean; exact?: boolean | undefined; type: "string" | "number" | "date" | "array" | "set"; message: string; fatal?: boolean | undefined; } | { path: string; code: "invalid_intersection_types"; message: string; fatal?: boolean | undefined; } | { path: string; code: "not_multiple_of"; multipleOf: number; message: string; fatal?: boolean | undefined; } | { path: string; code: "not_finite"; message: string; fatal?: boolean | undefined; } | { path: string; code: "custom"; params?: { [k: string]: any; } | undefined; message: string; fatal?: boolean | undefined; })[]; data?: undefined; }; export {};