Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

429 B
Raw Blame
import type { GraphicsDocument } from './model';

/** An authoritative document/history owner. The editor only proposes commits. */
export interface GraphicsBackend {
  getDocument(): GraphicsDocument;
  getHistory(): { canUndo: boolean; canRedo: boolean };
  commit(document: GraphicsDocument): void;
  undo(): void;
  redo(): void;
  subscribe(
    listener: (source: 'local' | 'remote' | 'history') => void
  ): () => void;
}