export default function validate(value: any, context: any, { pattern, errorMessage }?: { pattern?: RegExp; errorMessage?: boolean; }): any;