export type TextSelectionBounds = {
    start: number;
    end: number;
    text: string;
};
export declare function isWordChar(char: string): boolean;
export declare function isWhitespaceChar(char: string): boolean;
export declare function isCaretOnWhitespace(text: string, caret: number): boolean;
export declare function findWordBounds(text: string, caret: number): TextSelectionBounds;
export declare function findSentenceBounds(text: string, caret: number): TextSelectionBounds;
export declare function expandSelectionAtCaret(text: string, caret: number): TextSelectionBounds;
export declare function getGlobalTextOffset(container: Node, targetNode: Node, localOffset: number): number;
export declare function createRangeFromTextOffsets(root: Node, start: number, end: number): Range | null;
export declare function applyExpandedSelectionToInput(element: HTMLInputElement | HTMLTextAreaElement): TextSelectionBounds | null;
export declare function applyExpandedSelectionToContentEditable(container: HTMLElement): TextSelectionBounds | null;
