///
import { EditorHandle, EditorProps } from './editor';
export interface RichTextProps extends EditorProps {
/**
* 自定义 class
*/
className?: string;
/**
* 是否禁用
*/
disabled?: boolean;
/**
* 默认值
*
* 作为初始值的 html string
*/
defaultValue?: string;
/**
* 是否使用 “块类型”
*/
withBlockType?: boolean;
/**
* 是否使用 “缩进”
*/
withIndent?: boolean;
/**
* 是否使用 “对齐”
*/
withAlignment?: boolean;
/**
* 是否使用 “文字尺寸”
*/
withFontSize?: boolean;
/**
* 是否使用 “图片”
*/
withImage?: boolean;
/**
* 插入图片的最大文件大小(bytes)
*
* @default 100 * 1024
*/
imageMaxSize?: number;
/**
* 图片插入时最大尺寸
* 0 为不做限制
*
* @default 480
*/
imageInsertWidthMax?: number;
/**
* 选择图片后的回调,async 返回 image src
*/
onImageAccept?: (file: File) => Promise;
/**
* 是否可输入指定 image src
*
* @default false
*/
enableImageSrc?: boolean;
}
export declare const RichText: import("react").ForwardRefExoticComponent>;
/**
* @public
*/
export interface RichTextHandle extends EditorHandle {
}