UNPKG

@gamesberry/karmyc-core

Version:

A flexible and powerful layout management system for React applications

14 lines (13 loc) 408 B
export interface UseSpaceHistoryOptions { enabled?: boolean; maxHistorySize?: number; } export declare function useSpaceHistory(spaceId: string | null, options?: UseSpaceHistoryOptions): { canUndo: boolean; canRedo: boolean; undo: () => void; redo: () => void; clearHistory: () => void; pastDiffs: import("..").THistoryDiff[]; futureDiffs: import("..").THistoryDiff[]; };