/** * Form — the Provider-free base `
` primitive. * * A thin, dependency-free wrapper around the native `` element so domain * components have a primitive to adopt instead of hand-rolling raw `` * markup (issue #1589). It forwards every native form attribute (including * `onsubmit`) and renders its children — no Provider, no i18n, no spoken-input * logic. * * For the rich, Provider-backed form with field registration and voice input, * use `Form` from `@happyvertical/smrt-svelte/forms` instead. This one is the * leaf-level building block; that one composes app state on top. * * `preventDefault` (default `true`) calls `event.preventDefault()` before * invoking the consumer's `onsubmit`, so a click/Enter submit runs the handler * without a full-page navigation — the near-universal SPA pattern. Pass * `preventDefault={false}` to keep native submission (e.g. a GET/POST `action`). */ import type { Snippet } from 'svelte'; import type { HTMLFormAttributes } from 'svelte/elements'; import { type ControlInteractionEvent, type ControlInteractionRegistry } from './control-interaction.js'; export interface Props extends Omit { class?: string; preventDefault?: boolean; /** Stable form scope used by voice/chat/tutorial adapters. */ formId?: string; /** Supply a registry to coordinate multiple forms or inspect commands. */ interactionRegistry?: ControlInteractionRegistry; /** Receives registry lifecycle and command events. */ oninteraction?: (event: ControlInteractionEvent) => void; children: Snippet; } declare const Form: import("svelte").Component ControlInteractionRegistry; getFormId: () => string; }, "">; type Form = ReturnType; export default Form; //# sourceMappingURL=Form.svelte.d.ts.map