import { Ref } from 'vue';
export declare function validateFormValue<T>(value: T, rules: ((v: T) => boolean | string)[]): {
    isValid: boolean;
    errors: string[];
};
export declare function useValidation<T>(val: Ref<T>, rules: ((v: T) => boolean | string)[]): import('vue').ComputedRef<{
    isValid: boolean;
    errors: string[];
}>;
