import React from 'react';
import './RichTextEditor.css';
import { FormControlCommonProps } from '../types.js';
import { FormControlWrapperPublicProps } from '../../FormLayout/components/FormControlWrapper';
export interface RichTextEditorProps extends FormControlCommonProps, FormControlWrapperPublicProps {
    /** If true, Editor will be focused on load */
    autofocus?: boolean;
    /** Initial state will be created from this. Useful for editing previously created content.   */
    initialHTML?: string;
    /** Function receives object with props: html and text.
     *  Because exporting the state it's an expensive operation, it will only be triggered after 750ms of inactivity.
     * */
    onChangeValue: (newState: {
        html: string;
        text: string;
    }) => void;
    /** Callback to process an image to be uploaded. <br>
     * It takes a [File object](https://developer.mozilla.org/en-US/docs/Web/API/File) as it's argument and should return a Promise resolving on a string with the url where the file is located.
     * */
    onImageUpload?: (file: File) => Promise<string>;
    placeholderText?: string;
}
declare const RichTextEditor: ({ autofocus, initialHTML, onChangeValue, onImageUpload, disabled, error, hint, label, labelBehavior, maxWidth, minWidth, name, onBlur, onFocus, placeholder, subText, showErrorMessage, valid, }: RichTextEditorProps) => React.ReactElement;
export { RichTextEditor };
