/// /** * Scrolls the element that the returned ref is applied to such that the given start of the selection range remains in view * @param scrollCursorPadding The padding to apply, such that there is at least this number of pixels visible on either side of the cursor * @param getPixelSelection A potential pixel selection listener to forward the data passed to the returned selection setter to * @returns An array containing the element ref, as well as the function to call when the pixel selection changed */ export declare function useCursorScroll(scrollCursorPadding: number, getPixelSelection?: (pixelSelection?: { start: number; end?: number; }) => void): readonly [readonly [(el: HTMLElement | null) => void, import("react").MutableRefObject], (pixelSelection?: { start: number; end?: number | undefined; } | undefined) => void]; //# sourceMappingURL=useCursorScroll.d.ts.map