import {EmitterSource, Range} from "quill";
import {Delta} from "quill/core";
import {JSX} from "react";

export interface QuillJSEditorProps {
    defaultValue: string|JSX;
    readOnly: boolean;
    onTextChange?: (content: string, delta: Delta, oldContent: Delta, source: EmitterSource) => void;
    onSelectionChange?: (content: string, range: Range, oldRange: Range, source: EmitterSource) => void;
}