import { BaseRange, BaseText, NodeEntry } from 'slate'; import { DOMEditor } from '../../slate-dom/index.ts'; import { JsonObject } from '@liveblocks/client'; import { CursorEditor, CursorState } from '../plugins/withCursors'; export declare const REMOTE_CURSOR_DECORATION_PREFIX = "remote-cursor-"; export declare const REMOTE_CURSOR_CARET_DECORATION_PREFIX = "remote-caret-"; export type RemoteCaretDecoration = { [key: `${typeof REMOTE_CURSOR_CARET_DECORATION_PREFIX}${string}`]: CursorState & { isBackward: boolean; }; }; export type RemoteCursorDecoration = { [key: `${typeof REMOTE_CURSOR_DECORATION_PREFIX}${string}`]: CursorState; }; export type RemoteCursorDecoratedRange = BaseRange & RemoteCursorDecoration; export type RemoteCaretDecoratedRange = BaseRange & RemoteCaretDecoration; export type TextWithRemoteCursors = BaseText & RemoteCursorDecoration & RemoteCaretDecoration; export declare function getRemoteCursorsOnLeaf>(leaf: TLeaf): CursorState[]; export declare function getRemoteCaretsOnLeaf>(leaf: TLeaf): (CursorState & { isBackward: boolean; })[]; export type UseDecorateRemoteCursorsOptions = { carets?: boolean; }; export declare function useDecorateRemoteCursors(editor: CursorEditor & DOMEditor, carets: boolean): import('vue').ComputedRef<(entry: NodeEntry) => (RemoteCursorDecoratedRange | RemoteCaretDecoratedRange)[]>;