UNPKG

usfm-editor

Version:
19 lines (18 loc) 842 B
import { Editor, Path } from "slate"; import { ReactEditor } from "slate-react"; import { DOMNode } from "slate-react/dist/utils/dom"; export declare const SelectionTransforms: { selectDOMNodeStart: typeof selectDOMNodeStart; selectNextSiblingNonEmptyText: typeof selectNextSiblingNonEmptyText; moveToStartOfFirstLeaf: typeof moveToStartOfFirstLeaf; moveToEndOfLastLeaf: typeof moveToEndOfLastLeaf; }; declare function selectDOMNodeStart(editor: ReactEditor, domNode: DOMNode): void; declare function selectNextSiblingNonEmptyText(editor: Editor): void; declare function moveToStartOfFirstLeaf(editor: Editor, path: Path, options?: { edge: "focus" | "anchor"; } | undefined): void; declare function moveToEndOfLastLeaf(editor: Editor, path: Path, options?: { edge: "focus" | "anchor"; } | undefined): void; export {};