import ContentBlock from '../block/base/content'; export type NodeOffset = { offset: number; }; export type Cursor = { start?: NodeOffset | null; end?: NodeOffset | null; block?: ContentBlock; path?: (string | number)[]; anchor?: NodeOffset | null; focus?: NodeOffset | null; anchorBlock?: ContentBlock; anchorPath?: (string | number)[]; focusBlock?: ContentBlock; focusPath?: (string | number)[]; isCollapsed?: boolean; isSelectionInSameBlock?: boolean; direction?: string; type?: string; }; export type TSelection = { anchor: NodeOffset; focus: NodeOffset; anchorBlock: ContentBlock; anchorPath: (string | number)[]; focusBlock: ContentBlock; focusPath: (string | number)[]; isCollapsed: boolean; isSelectionInSameBlock: boolean; direction: string; type: string; };