trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
20 lines • 787 B
TypeScript
/**
* Editor Vanilla — framework-free bindings (ADR 0034 wedge 4).
*
* Import from `trellis/editor/vanilla`:
*
* const editor = createVanillaEditor({ undoHistory: undo });
* editor.actions.type('hello');
* editor.subscribe(() => render(editor.state.text));
*
* @module trellis/editor/vanilla
*/
import type { EditorConfig, UseEditorReturn } from '../core/index.js';
/** Accept either a config (fresh core) or an existing core (shared mount). */
export type EditorInput = EditorConfig | UseEditorReturn;
/**
* Create a framework-free editor from a config or an existing core (to
* share one mount across adapters) with the standard core surface.
*/
export declare function createVanillaEditor(input?: EditorInput): UseEditorReturn;
//# sourceMappingURL=index.d.ts.map