///
/**
* @name useTextSelection
* @description Hook to get the current text selection in the document.
* see https://gist.github.com/KristofferEriksson/8acb9b3eb241507eb0f6232938bf4ec7
*/
interface UseTextSelectionReturn {
text: string;
rects: DOMRect[];
ranges: Range[];
selection: Selection | null;
}
export declare function useTextSelection(elementRef?: React.RefObject): UseTextSelectionReturn;
export {};
//# sourceMappingURL=use-text-selection.d.ts.map