import React from 'react'; import Quill from 'quill'; import { TextElementType } from '../model/text-model.js'; import type { TableCellType } from '../model/table-model.js'; import { type LayoutNode, type LayoutText } from 'render-tag'; import { applyOpacityToColor } from '@polotno/core/svg'; export { applyOpacityToColor }; export declare const quillRef: { enabled: boolean; currentFormat: Record; pendingToolbarInteraction: boolean; editor: { instance: any; }; }; export declare function syncQuillFormatState(quill: any, range: { index: number; length: number; } | null | undefined): void; export declare function collectRTText(node: LayoutNode, out: LayoutText[]): void; type MarkerVars = { bulletLeft: number; bulletTop: number; bulletFontSize: number; numberGap: number; }; export type MarkerFont = { fontFamily: string; fontSize: number; fontWeight: string | number; fontStyle: string; lineHeight: number | string; letterSpacing: number | string; }; export declare function computeMarkerVars(element: MarkerFont): MarkerVars | null; export declare const RichTextContainer: any; export declare const setQuillFormats: (formats: string[]) => void; export declare const createQuill: (node: any, options?: { placeholder?: string; }) => Quill; export declare const setQuillContent: (quill: any, html: any) => void; export type RichEditorElement = TextElementType | TableCellType; export declare const editorHtml: (element: Pick) => string; type Point = { x: number; y: number; } | null; export declare const RichEditor: ({ onBlur, onChange, element, clickCoords, initialCaret, fitScale, fitScaleFor, }: { onBlur: (e?: any) => void; onChange: (t: string) => void; element: RichEditorElement; clickCoords: Point; initialCaret?: 'start' | 'end'; fitScale?: number; fitScaleFor?: (text: string) => number; }) => React.JSX.Element; export declare function setCursorFromCoords(quill: any, coords: { x: number; y: number; } | null, fallbackIndex?: number): void;