export declare type Valid = (value?: any) => [string, any, string?] | null; export interface IError { type: string; error: string | IError; ref?: string; } export declare const validators: (valid: Valid, errors: any, value: any) => IError[];