export declare function validate(value: string | undefined, rule: any, data: any): any;