import { FormProps } from "../types.mjs"; import { FormEngine } from "../engine/FormEngine.mjs"; //#region ../react-form/src/components/useFormEngine.d.ts /** * Shared wiring for the `Form` / `NativeForm` function components: * * - Lazily instantiates a single {@link FormEngine} held in a ref (stable * identity for context + the event bus). * - Derives an SSR-safe id from React's `useId()` when none is provided. * - Syncs the latest scalar options/handlers into the engine each render. * - Re-hydrates controls when the reactive `values` prop identity changes, and * updates the reset baseline when `defaultValue` changes. * - Activates/destroys the active-form registry on mount/unmount. * * @param submitHandler platform-specific submit trigger invoked by `form.submit()`. */ declare function useFormEngine(props: FormProps, submitHandler: (engine: FormEngine) => void): { engine: FormEngine; id: string; }; //#endregion export { useFormEngine }; //# sourceMappingURL=useFormEngine.d.mts.map