import IAttachProps from "../types/attach"; import IImageProps from "../types/image"; import { IMentionProps } from "../types/mention"; import { TToolbarItem } from "../types/toolbar"; import IVideoProps from "../types/video"; import React from 'react'; export type OriginRichTextProps = { editable: boolean; componentRef: any; value: any; placeholder: string; onFocus: () => void; onBlur: () => void; toolbar: TToolbarItem[]; toolbarExtra: React.ReactNode; mentions: Partial; autoSelect: boolean; onEnter: () => void; showFileAsLink: boolean; enableVariable: boolean; plainText: boolean; onEnterPreview: () => void; onExitPreview: () => void; renderFooter: () => React.ReactNode; onStartUpload: () => void; onEndUpload: (success: boolean, files: any[]) => void; onEsc: () => void; className: string; onClick: () => void; secretKey: string; id: string; attachments: any; imageProps: IImageProps; attachProps: IAttachProps; videoProps: IVideoProps; trackerApi: (data: { type: string; event: string; }) => Promise; onChange: (value: any, size: number, isEmpty: boolean) => void; }; export type RichTextProps = Partial;