/** * adowire client — adowire:submit directive * * Uses event delegation on `document` to intercept submit events on forms * carrying a `adowire:submit` attribute. It: * 1. Calls `preventDefault()` to stop the native browser submission. * 2. Serialises form fields that have a `adowire:model` attribute into an * `updates` object (keyed by the model path). * 3. Parses the `adowire:submit` attribute value for an optional method name * (defaults to `"submit"` if the value is empty or boolean-like). * 4. Commits the action to the owning [adowire:id] component. * * Attribute value formats (same grammar as adowire:click): * adowire:submit → method: "submit", params: [] * adowire:submit="save" → method: "save", params: [] * adowire:submit="save(1)" → method: "save", params: [1] */ /** * Attach the delegated `adowire:submit` listener to `document`. */ export declare function registerSubmitDirective(): void;