import type React from 'react'; import { type ReadonlyMarkdownBlockPath, type ReadonlyMarkdownSearchEditor } from './findTextInReadonlyMarkdownDom'; /** * markdown 只读模式下的轻量 store:提供与 EditorStore 相近的查询 API,无 Slate 文档树。 */ export declare class ReadonlyMarkdownEditorStore { private contentGetter; private containerGetter; constructor(options: { getContent: () => string; getContainer: () => HTMLElement | null; }); /** 供 `findByPathAndText(editor, ...)` 使用的只读搜索上下文 */ get editor(): ReadonlyMarkdownSearchEditor; getMDContent(): string; setMDContent(_markdown: string): void; getContentContainer(): HTMLElement | null; findByPathAndText(pathDescription: ReadonlyMarkdownBlockPath, searchText: string, options?: { caseSensitive?: boolean; wholeWord?: boolean; maxResults?: number; includeMarkdownVariants?: boolean; }): import("./findTextInReadonlyMarkdownDom").ReadonlyMarkdownTextMatch[]; /** Slate store 兼容占位 */ updateNodeList: () => void; insertNodes: () => void; footnoteDefinitionMap: Map; } export type ReadonlyMarkdownEditorInstance = { markdownContainerRef: React.MutableRefObject; markdownEditorRef: React.MutableRefObject; store: ReadonlyMarkdownEditorStore; getDisplayedContent: () => string; exportHtml: (filename?: string) => void; }; export declare const createReadonlyMarkdownEditorInstance: (options: { markdownContainerRef: React.MutableRefObject; getDisplayedContent: () => string; }) => ReadonlyMarkdownEditorInstance;