import { type Ref, type WritableComputedRef } from 'vue'; export type ValidationResult = boolean | string; export type ValidationRule = ValidationResult | ((value: any) => ValidationResult); export declare function useValidation(model: WritableComputedRef, rules: Readonly>): { validate: () => string[]; resetValidation: () => void; errorMessages: Ref; };