import type { Ref } from 'vue';
export declare function useValidation(options: {
    name?: Ref<string>;
    validate?: Ref<boolean>;
    schema?: Ref;
    onUpdate?: (model: any) => void;
    onSubmit?: (model: any) => void;
}): {
    schema: any;
    onSubmit: (event: SubmitEvent) => Promise<void>;
    onInput: (nameRef: Ref<string | undefined>, value: any) => Promise<void>;
    onBlur: (nameRef: Ref<string | undefined>, event: any) => void;
};
export declare function useFormValidationError(options: {
    schema: Ref;
    error: Ref<boolean | string[] | undefined>;
}): {
    hasError: import("vue").ComputedRef<boolean>;
};
