import { CasterFn, ValidationResult, ErrorMessage, NonEmptyArray } from './types'; export declare const validate: (casterFn: CasterFn) => (value: unknown, context?: string) => ValidationResult; export declare const validation: (casterFn: CasterFn, invalidFactory: (errors: NonEmptyArray) => Invalid, validFactory: (value: T) => Valid) => (value: unknown, context?: string) => Valid | Invalid;