export as namespace CNRichTextEditor; import { Component, ReactNode } from "react"; import { StyleProp, StyleSheet, TextStyle, ViewStyle } from "react-native"; export interface CNRichTextEditorProps { onSelectedTagChanged?: (tag: string) => void; onSelectedStyleChanged?: (styles: string[]) => void; onValueChanged?: (value: object[]) => void; onRemoveImage?: (url: string, id: string) => void; value: ReturnType; styleList: any; ImageComponent?: React.ReactElement; style?: StyleProp; contentContainerStyle?: StyleProp; onFocus?: () => void; onBlur?: () => void; placeholder: string; textInputStyle?: StyleProp; } export default class CNRichTextEditor extends Component { applyToolbar(toolType: any): void; insertImage(uri: any, id?: any, height?: number, width?: number): void; focus(): void; } export interface CNToolbarProps { selectedTag: string; selectedStyles: string[]; onStyleKeyPress: (toolType: any) => void; size?: number; iconSet?:any[]; iconSetContainerStyle: StyleProp; style?: StyleProp; color?: string; backgroundColor?: string; selectedBackgroundColor?: string; iconContainerStyle?: StyleProp; } export class CNToolbar extends Component {} export interface CNRichTextViewProps { text: string; style?: StyleProp; styleList: ReturnType; } export class CNRichTextView extends Component {} export function getInitialObject(): any; export function convertToHtmlString(html: object[]): string; export function convertToObject(html: string): object[]; export function getDefaultStyles(): ReturnType;