import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["form"]; type $Props = { /** * Obtain a reference to the form element. * @default null */ ref?: null | HTMLFormElement; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type FormProps = Omit<$RestProps, keyof $Props> & $Props; export default class Form extends SvelteComponentTyped< FormProps, { click: WindowEventMap["click"]; keydown: WindowEventMap["keydown"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; submit: WindowEventMap["submit"]; }, { default: Record } > {}