/** * adowire client — main bootstrap entrypoint * * Responsibilities: * 1. Scan the DOM for [adowire:id] elements and initialise a WireClientComponent * for each one, storing them in the global registry. * 2. Set up a MutationObserver so dynamically injected components are * initialised automatically (e.g. after a redirect-less navigation or a * server-streamed partial). * 3. Expose `window.Adowire` with the public API surface. * 4. Register all wire:* directives (click, submit, …). * 5. Call `initAlpineBridge()` to wire up the Alpine `$wire` magic when * Alpine is present on the page. * * The bundle is intentionally side-effect-free at import time — everything * is deferred until `DOMContentLoaded` so that the script can safely be * placed in with `defer`. */ import { WireClientComponent } from './component.js'; /** * Initialise all [adowire:id] components currently in the DOM. * * Called automatically on DOMContentLoaded and may also be called manually * after programmatic DOM changes if the MutationObserver hasn't fired yet. */ declare function init(): void; /** * Retrieve a component instance by its adowire:id. * * @param id The value of the `adowire:id` attribute on the component root. * @returns The `WireClientComponent` instance, or `undefined` if not found. */ declare function find(id: string): WireClientComponent | undefined; export declare const Adowire: { readonly version: "0.1.0"; readonly components: Map; readonly init: typeof init; readonly find: typeof find; }; export {};