import { TextRange, TextSection } from "../types"; export declare function getSurroundingWord(text: string, position: number): TextRange; export declare function selectWord({ text, selection }: TextSection): TextRange; /** * Gets the number of line-breaks that would have to be inserted before the given 'startPosition' * to make sure there's an empty line between 'startPosition' and the previous text */ export declare function getBreaksNeededForEmptyLineBefore(text: string, startPosition: number): number; /** * Gets the number of line-breaks that would have to be inserted after the given 'startPosition' * to make sure there's an empty line between 'startPosition' and the next text */ export declare function getBreaksNeededForEmptyLineAfter(text: string, startPosition: number): number;