import { LiveTree } from "../livetree.js"; /** * Remove *all* children of this LiveTree’s node, both in the Hson model * and in the mounted DOM. * * Behavior: * - Iterates the current node’s `$_content` list. * - For each child `HsonNode`, performs a full deep detach: * - removes DOM elements, * - unregisters listeners, * - clears NODE_ELEMENT_MAP entries, * - cleans up QUID scopes. * - After detaching, resets `$_content` to an empty array. * * DOM handling: * - If the node is mounted, any stray DOM children are removed * defensively. In practice `detach_node_deep` already clears them, but * this ensures no mismatches remain between IR and DOM. * * Postcondition: * - The LiveTree still points at the same node, now with zero children. * - Further mutations (append, create, setText, etc.) operate normally. * * Notes: * - This differs from `remove_self`: the node remains in place, * only its interior is cleared. */ type EmptyTreeLike = Pick; export declare function empty_contents(this: TTree): TTree; export {}; //# sourceMappingURL=empty.d.ts.map