import { NodeRegistry } from '../registry'; import { CompactNode, Snapshot } from './types'; /** Reads a (possibly legacy) CraftJS snapshot as a compact tree. Opaque nodes (unregistered or non-writable) keep only `id` and `type`; an opaque node at `rootId` also keeps its `children`. */ export declare function fromSnapshot(snapshot: Snapshot, rootId?: string, options?: { registry?: NodeRegistry; }): CompactNode;