import { type TSchema } from "@sinclair/typebox"; export declare const CUT_AFTER_X_ERRORS = 10; /** * Validates the given data based on the given schema and its possibly required * references. For highly improved validation speed the given schema will be * compiled for validation. The compilation step is costly and therefore cached * in-memory after the first validation for every schema. * * @throws Error If the validation fails. The error contains all required * information to investigate the reason of failure. The '.message' attribute * contains one complete error message for each validation failure that occured. * The error messages are separated by '. '. The '.stack' attribute contains the * content of the '.message' attribute and the stack trace for the error. */ export declare const validateData: (data: unknown, schema: T, references?: TSchema[]) => import("@sinclair/typebox").Static;