/** * Something about the Selection/Range API in browsers. * If you want to use Highlighter in some old browsers, you may use a polyfill. * https://caniuse.com/#search=selection */ export declare const getDomRange: () => Range; export declare const removeSelection: () => void; /** * Get text from a Range with proper newline handling for block elements. * Uses innerText on a cloned fragment to get clean output matching Selection.toString(). * Range.toString() includes HTML source whitespace, this method gives user-expected output. * Falls back to range.toString() in environments where innerText isn't available (e.g. jsdom). */ export declare const getTextFromRange: (range: Range) => string;