import * as React from 'react'; import Quill, { type QuillOptions } from 'quill'; import type { QuillDeltaApi } from 'json-joy/lib/json-crdt-extensions/quill-delta/QuillDeltaApi'; import type { OnEditorChange, OnSelectionChange, OnTextChange } from '@jsonjoy.com/collaborative-quill'; import type { PresenceManager } from '@jsonjoy.com/collaborative-presence'; export interface CollaborativeQuillProps extends React.HTMLAttributes { api: () => QuillDeltaApi | undefined; editor?: Quill; readonly?: boolean; options?: QuillOptions; themeCss?: string; /** When provided, remote peer cursors and selections are rendered via * `quill-cursors` and the local selection is broadcast to the manager. */ presence?: PresenceManager; /** Extracts user info from PresenceManager peer metadata. Defaults to * treating meta as `{ name?: string; color?: string }`. */ userFromMeta?: (meta: any) => { name?: string; color?: string; } | undefined; onEditor?: (quill: Quill) => void; onTextChange?: OnTextChange; onSelectionChange?: OnSelectionChange; onEditorChange?: OnEditorChange; } export declare const CollaborativeQuill: React.FC; //# sourceMappingURL=index.d.ts.map