/** * Safe wrappers around ElementInternals methods. In Stencil's hydrate/SSR * runtime (and in mock-doc spec tests) `@AttachInternals()` returns an inert * proxy whose members are all `undefined`, so direct calls like * `internals.setFormValue(...)` throw. Property reads (`internals.form`) are * safe and don't need these wrappers. */ declare const setFormValue: (internals: ElementInternals, value: string | File | FormData | null) => void; declare const setValidity: (internals: ElementInternals, flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement) => void; /** * Submits `form` as a native submit button with this `name` and `value` would. A custom * element cannot be the submitter of `requestSubmit()`, so a hidden native button stands in * for it for the length of the call: the receiver gets `name=value`, `event.submitter` * carries them, and `new FormData(form)` leaves them out unless it is given the submitter. */ declare const requestSubmitAs: (form: HTMLFormElement, name?: string, value?: string) => void; export { requestSubmitAs, setFormValue, setValidity };