import { RecordsDiff, UnknownRecord } from '@tldraw/store' /** @public */ export interface TLHistoryMark { type: 'stop' id: string } /** @public */ export interface TLHistoryDiff { type: 'diff' diff: RecordsDiff } /** @public */ export type TLHistoryEntry = TLHistoryMark | TLHistoryDiff /** @public */ export interface TLHistoryBatchOptions { history?: TLHistoryMode } /** * How should this change interact with the history stack? * - record: Add to the undo stack and clear the redo stack * - record-preserveRedoStack: Add to the undo stack but do not clear the redo stack * - ignore: Do not add to the undo stack or the redo stack */ export type TLHistoryMode = 'record' | 'record-preserveRedoStack' | 'ignore'