import { HsonNode } from "../../../core/types.js"; import { LiveTree } from "../livetree.js"; export declare function create_livetree(node: HsonNode): LiveTree; /** * Wrap a raw `HsonNode` in a new `LiveTree` that inherits the caller’s host root. * * Semantics: * - Constructs a new `LiveTree` over `node`. * - Copies the parent’s `hostRoot` via `adoptRoots(parent.getHostRoots())` * so the new tree participates in the same “document root” context * (for removal, grafting, etc.). * * Notes: * - Used by search helpers (`find` / `find_all_in_tree`) to ensure that * returned child trees still know which root they belong to, even * though they are focused on a single node. * * @param parent - The `LiveTree` providing the host root context. * @param node - The raw `HsonNode` to wrap. * @returns A `LiveTree` bound to `node` with inherited host roots. */ export declare function wrap_in_tree(parent: LiveTree, node: HsonNode): LiveTree; //# sourceMappingURL=create-livetree.d.ts.map