export declare type ErrorMessage = string; export declare type IValidator = (prop: T) => ErrorMessage | null; export interface IValidationError { path: string; message: string; } export declare class Validator { static validate(item: T): IValidationError[] | null; }