import { NodeRegistry } from '../registry'; import { CompactNode, SerializedNodes } from './types'; /** Builds a fresh CraftJS subtree from a compact node. Incoming ids are ignored; every node gets a new id (the subtree root uses `rootId` when given). */ export declare function toSerialized(node: CompactNode, options: { parentId: string; rootId?: string; newId?: () => string; registry?: NodeRegistry; }): { rootId: string; nodes: SerializedNodes; };