/** * Which forms are being validated interactively in this task — a submitter was clicked, Enter was pressed, * `requestSubmit()` / `reportValidity()` was called — as opposed to `checkValidity()`, which also fires `invalid` * but where a native control shows nothing. The same store as the web components' (primitives/shared/form-control.ts): * one page can mix both, in one form. */ interface Store { validating: Set; wrapped: WeakSet; listening: boolean; } /** The page's one store (both flavours, and any copies of the package, share it). */ export declare function validationStore(): Store; /** Marks a form (or a field) as being validated interactively until the end of this task. */ export declare function markValidating(target: EventTarget): void; /** Whether `field` (or its form) is being validated interactively right now. */ export declare function isValidating(field: EventTarget, form: HTMLFormElement | null): boolean; /** * Starts watching: clicks on a submitter and Enter in a field mark their form (capturing, before the browser's * validation); the form's own `requestSubmit()` / `reportValidity()` mark it too (its instance methods, only on forms * holding these fields). */ export declare function watchValidation(form: HTMLFormElement | null): void; /** The form's first invalid field, in the form's own order (`form.elements` also holds fields tied by `form="id"`). */ export declare const firstInvalid: (form: HTMLFormElement) => Element | undefined; export {};