/** * Single type for use where we want any type of HTML form element, before we narrow * down to a single * @internal */ export declare type FormEl = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement; /** * An error state for an form input */ export interface FormulaError { /** * If the field is valid */ valid: boolean; /** * If the field is invalid */ invalid: boolean; /** * The message returned from the HTML element */ message: string; /** * The errors from the {@link https://developer.mozilla.org/en-US/docs/Web/API/Constraint_validation|Contraint Validation API} */ errors: Record; } /** * Internally extracted data from the form element, used to generate other store values * @internal */ export interface FormulaField extends FormulaError { /** * The name of the field being handled */ name: string; /** * The current value or values of the field */ value: unknown | unknown[]; } /** * Form Errors */ export declare type FormErrors = Record;