import { DDSElement } from "./dds-element.js"; type FormValueType = string | File | FormData | null; export declare class DDSFormElement extends DDSElement { static readonly formAssociated = true; /** * The form name, submitted as a name/value pair when submitting the form. */ name: string; /** * The form value, submitted as a name/value pair when submitting the form. */ value: string; /** * The form attribute specifies the form the form component belongs to. * The value of this attribute must be equal to the id attribute of a
element in the same document. */ formAttr: string; protected internals: ElementInternals | null | undefined; constructor(); /** * Returns the form object associated with the element, or null if none exists. * @private */ get form(): HTMLFormElement | null; /** * Set the element's name and value within the current form. * @private */ setFormValue(value: FormValueType, state?: FormValueType): void; /** * A function that maps to the form control's `reportValidity()` function. * Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity * @private */ reportValidity(): boolean | undefined; /** * A function that maps to the form control's `checkValidity()` function. * Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity * @private */ checkValidity(): boolean | undefined; /** * TODO Enhance these functions to bring our components closer to native form components. * @private */ hostConnected(): void; /** * TODO Enhance these functions to bring our components closer to native form components. * @private */ hostDisconnected(): void; /** * TODO Enhance these functions to bring our components closer to native form components. * @private */ hostUpdated(): void; } export declare class DDSFormSubmitElement extends DDSElement { static readonly formAssociated = true; /** * The form attribute specifies the form the form component belongs to. * The value of this attribute must be equal to the id attribute of a element in the same document. */ formAttr: string; protected internals: ElementInternals | null | undefined; constructor(); /** * Returns the form object associated with the element, or null if none exists. * @private */ get form(): HTMLFormElement | null; /** * A function that maps to the form control's `reportValidity()` function. * Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity * @private */ requestSubmit(): void; /** * A function that maps to the form control's `checkValidity()` function. * Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity * @private */ reset(): void; /** * TODO Enhance these functions to bring our components closer to native form components. * @private */ hostConnected(): void; /** * TODO Enhance these functions to bring our components closer to native form components. * @private */ hostDisconnected(): void; /** * TODO Enhance these functions to bring our components closer to native form components. * @private */ hostUpdated(): void; } export {};