import { CustomElement } from "../custom-element.js"; import { Constructor } from "../utils/dedupe-mixin.js"; interface FormAssociated extends HTMLElement { /** @internal */ elementInternals: ElementInternals; name: string; value: string | number | string[]; disabled: boolean; readonly: boolean; required: boolean; get form(): HTMLFormElement | null; get validity(): ValidityState; get validationMessage(): string; get willValidate(): boolean; /** * Clears the value of the form-associated element. */ clear(): void; /** * The checkValidity() method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it. * * @see {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity | `ElementInternals.checkValidity()`} method. */ checkValidity(): boolean; /** * Reports the validity of the element. * @see {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity | `ElementInternals.reportValidity()`} method. */ reportValidity(): void; /** * Sets the validity of the element, and optionally the error message and element to which the error applies. * * @see {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity | `ElementInternals.setValidity()`} method. */ setValidity(flags?: ValidityStateFlags, target?: HTMLElement): void; /** @internal */ toFormValue(): string | File | FormData | null; } declare const FormAssociated: >(superClass: T) => Constructor & T; export { FormAssociated };