import { Node, NodeId } from '../../../types'; /** * Returns a function that maps the live `state.nodes` to a page revision, a counter of edits. CraftJS also replaces * `state.nodes` on hover, selection and DOM updates, so only a changed node set or a changed `data` object counts; * otherwise hovering the canvas would hide Undo and remount every preview. Loading the first page into the empty * node set is the baseline, not an edit: the frame deserializes it while rendering, so counting it would update the * provider during another component's render. Call it with each new `state.nodes`. */ export declare function createRevisionTracker(): (nodes: Record) => number;