/** * Markdown ↔ Rich Text conversion and Markdown mode toggle. * * markdownToHtml — converts a markdown string to editor-compatible HTML * htmlToMarkdown — converts editor HTML back to markdown * MarkdownFeature — manages mode toggle and .md file import */ export declare function markdownToHtml(markdown: string): string; export declare function htmlToMarkdown(html: string): string; export declare class MarkdownFeature { private editorArea; private wrapper; private toolbar; private textarea; private _isMarkdownMode; constructor(editorArea: HTMLElement, wrapper: HTMLElement, toolbar: HTMLElement); get isMarkdownMode(): boolean; /** Convert current editor content to markdown and show textarea. */ toggle(): void; /** Return current content as HTML (handles markdown mode). */ getContentHtml(): string | null; /** Open a file picker and import a .md file into the editor. */ importFile(onImport: (html: string) => void): void; /** Export current editor content as a .md file download. */ exportFile(html: string): void; destroy(): void; private switchToMarkdown; private switchToRichText; _pendingHtml: string | null; private static readonly ICON_MD; private static readonly ICON_RT; private updateToggleBtn; } //# sourceMappingURL=markdown.d.ts.map