import { FC } from 'react'; import { BrainfishEditorProps } from '../types'; import { CollabState } from './internal/setupCollaboration'; interface MilkdownEditorProps extends Omit { collabState?: CollabState; onGrammarCheck?: (text: string) => Promise; onReady?: () => void; /** Ref to be set with replaceContent function when editor is ready */ replaceContentRef?: React.MutableRefObject<((markdown: string) => void) | null>; /** Ref to be set with refreshHeadings function when editor is ready */ refreshHeadingsRef?: React.MutableRefObject<(() => void) | null>; } /** * Core editor component wrapping Milkdown with Crepe preset. * Handles editor creation, plugins, and collaboration binding. */ export declare const MilkdownEditor: FC; export {};