/** @file Helpers for reasoning about and manipulating the text currently under the cursor. */ export interface TextUnderCursor { text: string; anchorOffset: number; focusOffset: number; } export declare const DEFAULT_TEXT_UNDER_CURSOR: { text: string; anchorOffset: number; focusOffset: number; }; export declare function isSelectionCollapsed(textUnderCursor: TextUnderCursor): boolean; export declare function getTextBeforeCursor(textUnderCursor: TextUnderCursor): string; export declare function isCursorAtBoundary(textUnderCursor: TextUnderCursor): boolean; export declare function canAutocompleteAtCursor(textUnderCursor: TextUnderCursor, partial?: string): boolean; export declare function autocompleteAtCursor(textUnderCursor: TextUnderCursor, partial: string, complete: string): TextUnderCursor;