import type { LitElement } from "lit"; import type { MixinBase, MixinReturn } from "./types.ts"; import { type WithElementInternals } from "./with-element-internals.ts"; export declare const getFormValue: unique symbol; export declare const getFormState: unique symbol; export type FormValue = File | string | FormData; export type FormRestoreState = File | string | Array<[string, FormDataEntryValue]>; export type FormRestoreReason = "restore" | "autocomplete"; export interface FormAssociatedConstructor { /** * Indicates that an element is participating in form association. */ readonly formAssociated: true; } export interface FormAssociated { /** * The associated form element with which this element's value will submit. */ readonly form: HTMLFormElement | null; /** * The labels this element is associated with. */ readonly labels: NodeList; /** * The HTML name to use in form submission. */ name: string; /** * Whether or not the element is disabled. */ disabled: boolean; /** * Gets the current form value of a component. * * @return The current form value. */ [getFormValue](): FormValue | null; /** * Gets the current form state of a component. Defaults to the component's * `[formValue]`. * * Use this when the state of an element is different from its value, such as * checkboxes (internal boolean state and a user string value). * * @return The current form state, defaults to the form value. */ [getFormState](): FormValue | null; /** * A callback for when a form component should be disabled or enabled. This * can be called in a variety of situations, such as disabled `