import { MaybeRefOrGetter } from 'vue'; export type UseFormValidityOptions> = Record>> = { /** * Explicitly set custom error. Any non-nullish value will set the input to be invalid. */ error?: MaybeRefOrGetter; /** * Props that influence native validation state. These are not used directly, but watched to trigger a re-evaluation of validation state. * E.g. when `required` is changed from `true` to `false` the state needs to be re-evaluated. */ props: TProps; /** * Component emit as defined with `const emit = defineEmits()` */ emit: (evt: "validityChange", validity: ValidityState) => void; }; export type InputValidationElement = Pick; export declare const useCustomValidity: >>(options: Omit, "emit">) => { /** * Directive to set the custom error message and emit validityChange event. */ vCustomValidity: { mounted: (el: InputValidationElement) => void; }; /** * validityState of the html element. */ validityState: import('vue').Ref | undefined, Record | undefined>; };