/** * VMZ DOM SSR / hydrate / resume ??precise patches, no VDOM diff. * Imports client DOM primitives from ./dom-core.js for tree-shakeable browser entry. */ import { findOwnedDefaultSlot } from '../browser/dom-core.js'; export declare function renderToString(Component: any, props?: any, opts?: any): Promise; /** * Stream SSR via the same Direct serialize schedule as `renderToString`. * Yields HTML chunks (open tag ??children ??close). Joining chunks equals `renderToString`. * Supports AbortSignal for cancel; consumers should respect backpressure (await between chunks). */ export declare function renderToStream(Component: any, props?: any, opts?: any): AsyncGenerator; /** * Live-DOM counterpart: first default `` owned by this tree, not by a nested * `[data-vmz]` component (Button/Link labels, etc.). * Re-exported from dom-core (single implementation). */ export { findOwnedDefaultSlot }; /** * Hydrate/mount a file-route page inside an optional layout chain (outer ??inner). * Mirrors SSR `slotHtml` wrapping: each layout's owned default slot becomes the * outlet for the next layout or the page. Retains layout instances on `container` * so SPA transitions can dispose only the page host. */ export declare function hydrateRoute(Page: any, container: any, props?: {}, layoutCtors?: any[], opts?: {}): Promise; /** * SPA same-layout transition: dispose only the page host, keep layout instances. * Callers must verify `data-vmz-layout` is unchanged before using this. */ export declare function hydrateRoutePage(Page: any, container: any, props?: any, opts?: any): Promise; /** * resume: attach to existing Island DOM without re-running construct structure or onMount. * Consumes ResumeEntry product (`data-vmz-resume`) derived from the same Execution Plan. */ export declare function resume(Component: any, container: any, slice?: any): Promise; /** * Resume all `[data-vmz-island]` hosts (prefer ResumeEntry / EventEntry over mount). * Event strategy islands wait for the DOM event before attach (lazy EventEntry). */ export declare function resumeIslands(root?: Document): void; /** * EventEntry attach: only wire `client:event` / `client:event:*` islands. * Idle/load/visible ResumeEntries are left alone (static shell can defer framework work). */ export declare function attachEventEntries(root?: Document): void; export declare function hydrate(Component: any, container: any, props?: any, opts?: any): Promise; export declare function hydrateIslands(root?: Document): void;