import type { Ref } from 'vue'; import type { EponymeSchema } from '../types/index.js'; import type { ValidationErrors, ValidationMode } from '../utils/validate-eponyme-data.js'; export interface UseEponymeValidationOptions { /** Errors reported by the server, always shown regardless of what the user touched. */ serverErrors?: Ref; } /** Validates the edited document while the user types, using the same schema the server enforces on write. */ export declare function useEponymeValidation(schema: EponymeSchema, data: Ref>, savedData: Ref>, options?: UseEponymeValidationOptions): { errors: import("vue").ComputedRef; touched: import("vue").ComputedRef>; showAll: Ref; validateNow: (mode?: ValidationMode) => ValidationErrors; validateForPublish: () => boolean; reset: () => void; };