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