export interface DraftHistoryCommitOptions { /** 同一 groupId 在合并窗口内连续提交将合并为一条历史 */ groupId?: string; /** 合并窗口(毫秒),默认 600 */ mergeWindowMs?: number; } export interface DraftHistory { present: T | null; /** 写入并入栈(按 group/time 自动合并) */ commit: (next: T | null | ((prev: T | null) => T | null), options?: DraftHistoryCommitOptions) => void; /** 重置(不入栈),清空历史;用于上游 props 同步 */ replace: (next: T | null) => void; undo: () => void; redo: () => void; canUndo: boolean; canRedo: boolean; } export declare function useDraftConfigHistory(): DraftHistory;