/** * Returns the nearest scrollable parent element of the given element. * * @param element The element for which to find the scrollable parent. * @param x Whether to consider horizontal scrolling (default: true). * @param y Whether to consider vertical scrolling (default: true). * @returns The nearest scrollable parent element or the document body if none is found. */ export declare function getScrollParent({ element, x, y, }: { element: HTMLElement | null; x?: boolean; y?: boolean; }): HTMLElement | null;