import { type Id, type FormState, type FailureValidationResult } from "./form/index.js"; export interface GetFocusableElementOptions { /** * @default false */ checkVisibility?: boolean; } export declare function getFocusableElement(form: HTMLElement, instanceId: Id, { checkVisibility }?: GetFocusableElementOptions): ((HTMLElement | SVGElement) & Record<"disabled", unknown>) | null; export declare function getErrorsList(form: HTMLElement, pseudoId: Id): Element | null; export declare function getFocusAction(focusableElement: ReturnType, getErrorsList: () => Element | null): (() => void) | null; export declare function createFocusOnFirstError(options?: GetFocusableElementOptions): ({ errors }: FailureValidationResult, e: SubmitEvent, ctx: FormState) => false | Promise;