import { TSchema } from '@sidewinder/type'; /** The Error type thrown on validator assert. */ export declare class ValidateError extends Error { readonly errors: any[]; constructor(errors: any[]); } /** The return type for validate check. */ export interface ValidateResult { success: boolean; errors: any[]; errorText: string; } /** Provides runtime validation for Sidewinder Types */ export declare class Validator { private readonly typeCheck; constructor(schema: T, references?: TSchema[]); /** Check if the given data conforms to this validators schema. */ check(value: unknown): ValidateResult; /** Asserts if the given data conforms to this validators schema. */ assert(data: unknown): data is T; }