export declare const READONLY_MARKDOWN_CONTAINER_KEY = "__readonlyMarkdownContainer"; export type ReadonlyMarkdownBlockPath = number[]; export type ReadonlyMarkdownSearchEditor = { [READONLY_MARKDOWN_CONTAINER_KEY]: HTMLElement | null; }; export declare const isReadonlyMarkdownSearchEditor: (editor: unknown) => editor is ReadonlyMarkdownSearchEditor; export type ReadonlyMarkdownTextMatch = { path: ReadonlyMarkdownBlockPath; matchedText: string; offset: { start: number; end: number; }; lineContent: string; nodeType?: string; searchVariant?: string; isLink?: boolean; linkUrl?: string; }; /** 获取 markdown 只读内容块(供评论高亮等复用) */ export declare const getReadonlyMarkdownBlocks: (root: HTMLElement, blockIndex?: number) => HTMLElement[]; /** * 在 markdown 只读 DOM 中按块路径与文本搜索(纯 DOM,不依赖 Slate)。 */ export declare const findTextInReadonlyMarkdownDom: (container: HTMLElement, pathDescription: ReadonlyMarkdownBlockPath, searchText: string, options?: { caseSensitive?: boolean; wholeWord?: boolean; maxResults?: number; includeMarkdownVariants?: boolean; }) => ReadonlyMarkdownTextMatch[];