import type { MutableRefObject } from 'react'; export interface UseTextSelectionReturns { /** * A React Ref object that holds the current Selection object. */ selectionRef: MutableRefObject; /** * The selected text. */ text: string; /** * The DOMRect objects for each selected range. */ rects: DOMRect[]; /** * The Range objects for each selected range. */ ranges: Range[]; } /** * A React Hook that helps to get the selection state of the document. */ export declare function useTextSelection(): UseTextSelectionReturns;