import { CharNode, CharRow } from '../char/types'; import type { Path, Selection } from './types'; export declare const updateSelection: (selection: Selection, selecting: boolean, newFocus: { readonly path: Path; readonly offset: number; }) => Selection; export declare const getPathAndRange: (selection: Selection) => { readonly path: Path; readonly start: number; readonly end: number; }; export declare const isCollapsed: (selection: Selection) => boolean; export declare const makeSelection: (path: Path, offset: number) => Selection; export declare const makeSelection2: (anchorPath: Path, anchorOffset: number, focusPath: Path, focusOffset: number) => Selection; export declare const replaceSelection: (root: CharRow, selection: Selection, callback: () => CharNode) => CharRow;