// Generated by dts-bundle-generator v8.1.2 import { TagFunc } from 'vanjs-core'; export interface RecursiveTagMap { [key: string]: RecursiveTagMap & TagFunc; } /** * * TODO: get the form to hold and sync a state * TODO: get submit and reset to sync w/ state * TODO: sync up events to trigger state changes * TODO: add default states? * * Alternate form elements: * checkbox * color * date * datetime-local * email * file * hidden * image * month * number * password * radio * range * search * textarea */ export interface FormConfig { onSubmit?: (e: any) => void; } export declare const createForm: (formInputs: FormConfig) => { form: RecursiveTagMap & import("vanjs-core").TagFunc; inputs: Record & import("vanjs-core").TagFunc>; buttons: { submit: RecursiveTagMap & import("vanjs-core").TagFunc; reset: RecursiveTagMap & import("vanjs-core").TagFunc; }; submit: RecursiveTagMap & import("vanjs-core").TagFunc; reset: RecursiveTagMap & import("vanjs-core").TagFunc; state: import("vanjs-core").State; }; export {};