import type { FormEncType, FormMethod } from '@remix-run/router'; type MaybeElement = Node | EventTarget | { [name: string]: string; } | URLSearchParams | FormData | null; export type HTMLSubmitterElement = HTMLInputElement | HTMLButtonElement; export declare function isElement(node: MaybeElement): node is Element; export declare function isButtonElement(node: MaybeElement): node is HTMLButtonElement; export declare function isAnchorElement(node: MaybeElement): node is HTMLAnchorElement; export declare function isLinkElement(node: MaybeElement): node is HTMLLinkElement; export declare function isFormElement(node: MaybeElement): node is HTMLFormElement; export declare function isSubmitterElement(node: MaybeElement): node is HTMLSubmitterElement; export declare function isInputElement(node: MaybeElement): node is HTMLInputElement; export declare function isFormInputElement(node: MaybeElement): node is HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement; export declare function isTextAreaElement(node: MaybeElement): node is HTMLTextAreaElement; export declare function isSelectElement(node: MaybeElement): node is HTMLSelectElement; export declare function isFormOptionElement(node: MaybeElement): node is HTMLOptionElement; export declare function isTextInputElement(node: MaybeElement): node is HTMLInputElement | HTMLTextAreaElement; export declare function isNonTextInputElement(node: MaybeElement): node is HTMLInputElement | HTMLSelectElement; export declare function isFocused(element: Element): boolean; export declare function findLinkFromClickTarget(target: EventTarget | null): HTMLAnchorElement | null; type LimitedMouseEvent = Pick; export declare function shouldProcessLinkClick(event: LimitedMouseEvent, target?: string): boolean; type SubmitOptions = { /** * The HTTP method used to submit the form. Overrides `
`. * Defaults to "GET". */ method?: FormMethod; /** * The action URL path used to submit the form. Overrides ``. * Defaults to the path of the current route. * * Note: It is assumed the path is already resolved. */ action?: string; /** * The action URL used to submit the form. Overrides ``. * Defaults to "application/x-www-form-urlencoded". */ encType?: FormEncType; /** */ submitter?: HTMLSubmitterElement; }; export declare function getFormSubmissionInfo(target: HTMLFormElement | HTMLButtonElement | HTMLInputElement | FormData | URLSearchParams | { [name: string]: string; } | null, defaultAction: string, options: SubmitOptions): { url: URL; method: FormMethod; encType: string; formData: FormData; }; export declare function parseHTML(html: string): Document; export declare function domReady(): Promise; export {};