import { ValidationError } from '../validation-error'; export interface IAnySchema { readonly type: T; readonly rules: IAnySchemaRules; /** * Check if the value is not valid * * @param {unknown} value - the value to be validated * * @returns {string|null} * if there's an error, return a string message * if there's no error, return null */ validate: (value: unknown) => ValidationError | null; } export interface IAnySchemaRules { readonly required?: boolean; } export declare abstract class BaseSchema { static SCHEMA_DESCRIPTOR: symbol; protected readonly descriptor: symbol; }