/// import type { MarkdownEditorInstance } from '../../MarkdownEditor'; interface UseEditorValueSyncParams { value: string | undefined; markdownEditorRef: React.MutableRefObject; } interface UseEditorValueSyncResult { /** False while an external replacement is waiting for IME to commit. */ onEditorChange: (value: string) => boolean; onEditorReady: (instance: MarkdownEditorInstance | undefined) => void; flushPendingValue: () => void; } /** Keep controlled values authoritative without rewriting a live editor echo. */ export declare const useEditorValueSync: ({ value, markdownEditorRef, }: UseEditorValueSyncParams) => UseEditorValueSyncResult; export {};