import { type TLocalizedValidationError } from '../error/index.mjs'; import { type Static } from '../type/types/static.mjs'; import * as Schema from './types/index.mjs'; export declare class Validator> { private readonly evaluateResult; private readonly context; private readonly schema; constructor(context: Record, schema: Schema); /** Returns true if this Validator is using JIT acceleration. */ IsAccelerated(): boolean; /** Returns the underlying Schema used to construct this Validator. */ Schema(): Schema; /** Performs a type-guard check on the provided value. */ Check(value: unknown): value is Value; /** Validates a value and returns it. Will throw if invalid. */ Parse(value: unknown): Value; /** Returns an array of validation errors for the given value. */ Errors(value: unknown): [result: boolean, errors: TLocalizedValidationError[]]; } /** Compiles this schema into a high performance Validator */ export declare function Compile(schema: Schema): Validator; /** Compiles this schema into a high performance Validator */ export declare function Compile(context: Record, schema: Schema): Validator;