/**
* `` — Islands architecture / partial hydration wrapper.
*
* Wraps server-rendered static HTML and lazily hydrates a miura (or any
* custom-element) component when the chosen strategy fires.
*
* ## Attributes
*
* | Attribute | Values | Default | Description |
* |-------------|-------------------------------|----------|-------------|
* | `component` | custom element tag name | — | **Required.** Tag name to instantiate on hydration. |
* | `hydrate` | `"load"` `"visible"` `"idle"` | `"load"` | When to hydrate. |
* | `data-props`| JSON string | — | Props to apply (alternative to `
*
* 5
*
*
*
*
*
* Loading…
*
*
*
*
*
* ```
*
* ## Events
*
* - `miura-island:hydrated` — dispatched on the `` element after
* the component is mounted. `event.detail.element` is the created component.
*/
export declare class MiuraIsland extends HTMLElement {
static get observedAttributes(): string[];
private _hydrated;
private _io;
private _propsCache;
private _hydratedElement;
connectedCallback(): void;
disconnectedCallback(): void;
/**
* Imperatively trigger hydration regardless of strategy.
* Safe to call multiple times — hydrates only once.
*/
hydrate(): void;
get props(): Record;
get hydratedElement(): Element | null;
private _hydrate;
private _readProps;
private _scheduleVisible;
private _scheduleIdle;
}
export declare function findIslandHost(node: Node | null): MiuraIsland | null;
export declare function readIslandProps = Record>(node: Node | null): T | undefined;
//# sourceMappingURL=miura-island.d.ts.map