import type { MarkdownSourceEdit, MarkdownSourceSelection } from './markdown-source-commands'; interface MarkdownSourceHistorySnapshot extends MarkdownSourceEdit { } export declare function useMarkdownSourceHistory(initialMarkdown: string): { canUndo: boolean; canRedo: boolean; record: (edit: MarkdownSourceEdit, options?: { typing?: boolean; inputType?: string; }) => boolean; redo: () => MarkdownSourceHistorySnapshot | null; reset: (markdown: string, selection: MarkdownSourceSelection) => void; undo: () => MarkdownSourceHistorySnapshot | null; updateSelection: (selection: MarkdownSourceSelection) => void; }; export {};