import * as React from "react"; import { Command, GenerateMarkdownPreview, MdeState } from "./types"; import { LayoutMap } from "./LayoutMap"; import { EditorState } from "draft-js"; export interface ReactMdeProps { editorState: MdeState; className?: string; commands?: Command[][]; onChange: (value: MdeState) => void; generateMarkdownPreview?: GenerateMarkdownPreview; layout?: keyof LayoutMap; layoutOptions?: any; emptyPreviewHtml?: string; readOnly?: boolean; stickyToolbar?: boolean; placeholder?: string; } export declare class ReactMde extends React.Component { static defaultProps: Partial; handleOnChange: ({ markdown, html, draftEditorState }: MdeState) => void; handleDraftStateChange: (draftEditorState: EditorState) => void; onCommand: (command: Command) => void | Promise; componentDidMount(): Promise; render(): JSX.Element; }