import * as React from 'react'; import { EditorState, ViewState } from '@zettel/core'; import { RenderProps } from './types'; declare type Props = RenderProps & { onChange: (editorState: EditorState) => void; editorState: EditorState; viewState?: ViewState; htmlAttrs?: Object; onKeyDown?: (event: React.KeyboardEvent) => EditorState | void; readOnly?: boolean; }; declare const Editor: (props: Props) => React.ReactElement; export default Editor;