import { ReactElement, ChangeEvent, MouseEvent } from 'react'; export interface EditorProps { /** * Custom actions section, can be used for attaching file and more. */ actions?: ReactElement; /** * Author avatar. */ avatar?: string | ReactElement; /** * onChange event for Editor textarea. */ onChange: (e: ChangeEvent) => void; /** * submit event. */ onSubmit?: (e: MouseEvent) => void; /** * loading state for button. */ submitting?: boolean; /** * content for text area. */ value: string; } declare const Editor: ({ avatar, onChange, onSubmit, submitting, value, actions, }: EditorProps) => ReactElement; export default Editor;