UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

20 lines 805 B
/** * Undo-history Vanilla — framework-free bindings (ADR 0034 wedge 8). * * Import from `trellis/undo-history/vanilla`: * * const undo = createVanillaUndoHistory(); * undo.actions.push(insertChar, { coalesce: true }); * undo.subscribe(() => renderUndoState(undo.state)); * * @module trellis/undo-history/vanilla */ import type { UndoConfig, UseUndoReturn } from '../core/index.js'; /** Accept either a config (fresh core) or an existing core (shared mount). */ export type UndoInput = UndoConfig | UseUndoReturn; /** * Create a framework-free undo-history from a config or an existing core * (to share one mount across adapters) with the standard core surface. */ export declare function createVanillaUndoHistory(input?: UndoInput): UseUndoReturn; //# sourceMappingURL=index.d.ts.map