export declare const EMAIL_REGEXP: RegExp;
export type ValidationResult = {
    success?: string;
    error?: string;
    warning?: string;
};
export type RuleOptions<T = any> = {
    message?: string;
    successMessage?: string;
    warningMessage?: string;
    fieldName?: string;
    fieldIdentifier?: string;
    value?: T;
    length?: number;
    pattern?: RegExp;
    ignoreSpace?: boolean;
    isWarning?: boolean;
    validate?: ((value: T) => boolean | string) | ((value: T) => Promise<boolean | string>);
    date?: string | Date;
};
export type ValidationRule = (value: any) => ValidationResult | Promise<ValidationResult>;
export declare function useFieldValidation(): {
    generateRules: (fieldRules: Array<{
        type: string;
        options?: RuleOptions;
    }>) => ValidationRule[];
    parseDate: (dateStr: string | Date, format?: string) => Date | null;
};
