import { EvershopRequest } from '../../../../types/request.js'; import { EvershopResponse } from '../../../../types/response.js'; /** * POST /api/page-builder/changesets/:id/move-current * * Body: { direction: 'undo' | 'redo', route: string } * * Per-route undo/redo. `changeset.route_cursors` is a JSONB map from route to * the highest applied `change_order` for that route. Moving the cursor for * route X does NOT affect any other route's cursor — only ops with * `route = X` are walked. * * Undo: route_cursors[route] := largest change_order strictly less than * current, restricted to this route. 0 (or removed) when no prior op * on this route is in the applied region. * Redo: route_cursors[route] := smallest change_order strictly greater than * current, restricted to this route. No-op when no future op exists. * * Storage order (`change_order`) stays globally monotonic — only the apply * window is per-route. * * Returns `{ direction, route, routeCursors, currentChangeOrder, canUndo, canRedo }`. */ declare const _default: (request: EvershopRequest, response: EvershopResponse, _next: (err?: unknown) => void) => Promise; export default _default;