import { WNode } from '@wolf-tui/shared'; import { WolfieElement } from '../renderer/wolfie-element.js'; /** * Converts a framework-agnostic WNode descriptor to a WolfieElement tree. * * Creates wolfie-box/wolfie-text elements programmatically via the DOM bridge, * bypassing Svelte's compiled `set_custom_element_data()` which stringifies * objects and functions. Style objects are applied directly through `setStyle()` * and `applyLayoutStyle()`, ensuring proper Taffy layout integration. * * WNode render functions produce fully-computed styles, so no className * resolution or context-based defaults are needed here. */ export declare function wNodeToSvelte(node: WNode): WolfieElement; /** * Svelte action for reactive WNode mounting into a container element. * * On create and update: clears container children, builds a new WNode subtree * via wNodeToSvelte, then moves the root's children into the container. * Root-level style is also applied to the container so the WNode's outermost * layout props take effect on the container itself. */ export declare function mountWNode(container: WolfieElement, wnode: WNode): { update(newWnode: WNode): void; destroy(): void; }; //# sourceMappingURL=wnode-to-svelte.d.ts.map