import { LitElement } from "lit"; type CollectFormValuesOptions = { /** Return numbers (or `null` when empty) for `number` and `range` inputs, instead of strings. */ typed?: boolean; }; /** * Wraps its content in a native `
`, so submit, Enter-to-submit, * validation, `FormData` and `form.elements` behave as they do for any form. * Submitting never navigates: listen for the standard `submit` event. */ declare class FormElement extends LitElement { /** Label justification in the wide layout. Groups can override. */ labelAlign: `left` | `right`; /** Skip validation when submitting (like ``). `reportValidity()` still validates. */ noValidate: boolean; private _form?; private _observer?; protected createRenderRoot(): this; /** The native form element that holds the content. */ get form(): HTMLFormElement; /** Native controls in the form. Components with their own shadow root are not included. */ get elements(): HTMLFormControlsCollection; connectedCallback(): void; disconnectedCallback(): void; protected updated(): void; /** Moves everything into the native form. Nodes (not just elements) move so Lit's markers stay with their content. */ private _adoptChildren; /** * Browsers only submit on Enter when the form has a native submit button * or a single text field. Cover the other cases (e.g. an `ixfx-button`). */ private readonly _onKeydown; /** Validates (unless `novalidate`), then fires `submit`. */ requestSubmit(): void; /** Resets native controls. Components with their own shadow root are not reset. */ reset(): void; /** True if all native controls are valid. Shows nothing. */ checkValidity(): boolean; /** True if all native controls are valid. Otherwise shows the browser's message on the first invalid one. */ reportValidity(): boolean; /** Values of all named controls, including components with their own shadow root. Numbers are strings unless `typed`. */ getValues(options?: CollectFormValuesOptions): Record; setValues(data: Record): void; } declare global { interface HTMLElementTagNameMap { 'ixfx-form': FormElement; } } export { FormElement as t };