import { default as React } from 'react'; import { EditorViewMode, UploadImageFn, UploadStrategy } from '../editor-core'; import { HtmlSanitizerConfig } from './htmlSanitizer'; import { HtmlToolbarItem } from './htmlToolbarConfig'; export interface HtmlEditorHandle { focus: () => void; getValue: () => string; setValue: (value: string) => void; flushUploads: () => Promise; isUploading: () => boolean; } export interface HtmlEditorProps { value?: string; defaultValue?: string; onChange?: (value: string) => void; placeholder?: string; readOnly?: boolean; disabled?: boolean; className?: string; minHeight?: string | number; maxHeight?: string | number; view?: EditorViewMode; defaultView?: EditorViewMode; onViewChange?: (view: EditorViewMode) => void; allowedViews?: EditorViewMode[]; toolbar?: HtmlToolbarItem[] | false; showToolbar?: boolean; showStatusBar?: boolean; showWordCount?: boolean; uploadImage?: UploadImageFn; uploadStrategy?: UploadStrategy; maxImageSize?: number; acceptedImageTypes?: string[]; onUploadError?: (message: string, file?: File) => void; autoFocus?: boolean; spellCheck?: boolean; previewEmptyFallback?: React.ReactNode; openLinksInNewTab?: boolean; sanitize?: (html: string) => string; sanitizerConfig?: HtmlSanitizerConfig; id?: string; name?: string; ariaLabel?: string; } export declare const HtmlEditor: React.NamedExoticComponent>;