/** * The standard HTML ValidityState is an object with getter properties. * This makes it hard to compare changes. This function iterates through all * getters and transforms them to properties of a new plain object. */ export declare const transformValidityStateToObject: (validityState: ValidityState) => Record; /** * Extracts the first invalid validity type from the given HTML ValidityState. * "valueMissing" is prioritized over other types to align with the default browser behavior. */ export declare const getFirstInvalidType: (validity: ValidityState) => "tooShort" | "tooLong" | "rangeUnderflow" | "rangeOverflow" | "patternMismatch" | "valueMissing" | "stepMismatch" | "badInput" | "typeMismatch" | "customError" | undefined;